Questions tagged as 'json'

2
answers

Group elements of a JSON

I have the following JSON, which each record has a city, but the same city can be in many records at once. { "data": [ { "numero": "123", "nombre": "jorge", "ciudad": "Tokio" }, { "numero": "222", "n...
asked by 09.08.2018 / 18:13
1
answer

Show JSON with API from Angular 4

I try to show my Object from a GET service but I can only see [Object] [object]. Service: return this.http.get('http://localhost:3000/words').map((res: Response) => res.json()); Controller: export class WordsComponent implements OnI...
asked by 23.07.2018 / 15:44
1
answer

do a correct if else in MySQL procedure?

I have a condition that will be executed depending on the data that is being sent to the procedure. This is my code: CREATE DEFINER = erp@localhost PROCEDURE sp_stockProductoMovimientoAlmacen( idProducto VARCHAR(50), operacion CHAR(6),...
asked by 21.07.2018 / 18:34
1
answer

Javascript / HTML - filter JSON

I have 3 JSON : clinics, location and specialty, I'm trying to filter by location and by specialty with Javascript, the idea is that selecting the 1 or 2 filters together hide images from the page. The problem I have is that it works parti...
asked by 05.07.2018 / 08:30
1
answer

How to send 2 lists by JsonResult

What I want to do is send 2 lists in a JsonResult method and receive them in Ajax. Because I have a table from many to many, I need to change the IDs by names. So I need you to return the name of things. public JsonResult GetHerramientas(int I...
asked by 26.06.2018 / 20:36
1
answer

Is it possible to pass a Json by GET? [closed]

I would like to know if it is possible to pass a JSON to GET ? and if possible, I would like to know how?     
asked by 29.06.2018 / 17:45
2
answers

convert an object to json in swift

I am currently wanting to convert an object into swift of this class class UsuarioServer{ var username:String? var password:String? var nombreCompleto:String? var direccion:String? var edad:String? init (username: String, password: String, no...
asked by 24.06.2018 / 10:33
1
answer

event on click on react

my question is how to make an event a click pull out an item from a json in particular, that every time a click on a name appears the same name If I click on value: 1 send me the same name in a log and I could not get it   My code...
asked by 29.07.2018 / 20:17
2
answers

Get a list between two dates

I have created a restful api that obtains a list of coordinates that are stored in a database that follows the following format: / devices / 1 / gpses / 0, where the first number is the identifier of the device we want to see and the second is s...
asked by 06.06.2018 / 12:20
1
answer

Error traversing a JSON

I am trying to run a json which I previously obtained from php. But when I try to run it to show it, it sends me this error in the console.   I'm new to javascript and ajax, my goal is that json, is an array of a query made in mysql, when I...
asked by 05.05.2018 / 13:12