Questions tagged as 'json'

1
answer

Is it possible to generate JSON from Javascript?

Is there any way to do the JSON encode that is in PHP, but from JavaScript or jQuery? I need to pass an array that I create from JavaScript through an Ajax connection that I send by POST, and then this request is transformed by PHP into a GET...
asked by 21.06.2016 / 13:17
4
answers

Help with json swift on ios

Greetings to Everyone I'm trying to access the values of the Result {"Result":{"CODIGO":"Error","DESCRIPCION":"true","ID":"23"}} The Controller, for now I only access the Result. class FirstViewController: UIViewController { @IBOutle...
asked by 30.04.2016 / 19:38
2
answers

Separate json to use it in javascript

I have this output of json what I want to know is how to separate each object - ie: (3,2,5 etc.) in variables to use those variables in a javascript . Example: { "procede": "1", "status": "1", "statusText": "Corre...
asked by 17.10.2018 / 23:51
2
answers

Convert string to object or array in PHP

This string returns it when you send the data to a provider: string(474) " { "status":"success", "Data": { "RazonSocial":"Ferreteria Perez", "RFC":"XAXX010101006", "Calle":"Av.Juarez", "Numer...
asked by 11.10.2018 / 07:11
2
answers

How do you perform this json on vb.net?

I am using the Graph API of Facebook with webhook to channel an incoming message from a page in my application. The response received from the API is as follows: { "object":"page", "entry": [{"id":"594052300785675", "time":14...
asked by 23.05.2017 / 17:28
3
answers

Add values from a JSON array

I have this JSON array: [{"amount":"500"},{"amount":"750"},{"amount":"250"}] I have tried to add the values it contains with: $.getJSON('http://api.com..../water.php',function(data_water_tot){ console.log(data_water_tot); $.each(data_wat...
asked by 26.05.2017 / 16:42
5
answers

Error parsing json javascript [duplicated]

I'm working with php, mysql and jquery. Where I create a json with php that brings a single data, and I'll find it with jquery ajax. If I make a console.log to my data variable brought with ajax it shows me the data like this: [{"folio": "4562...
asked by 11.10.2016 / 17:27
2
answers

convert ListDocument to json

I have a problem I do not know how to convert the List<document> to json: public static List<Document> d() { conexion c = new conexion(); List<Document> resultados = new ArrayList<>();...
asked by 04.10.2017 / 22:20
2
answers

Recover array generated in JSON and sent by POST

I create a array with JSON and send it in an encrypted variable in base64 in a form. I recover it by POST , the decrypted and it remains: [ {"idcliente":"1", "id_comercial":"999999", "preciototal":"698.01", "p...
asked by 27.06.2016 / 19:13
4
answers

Problems with the $ _GET

I have this code and a value in the url that I call with the function: $ _GET (called cID = (Number)) I'm stuck and I can not make the query I do with the json, the only way it works is adding the number manually, but I need you to take it from...
asked by 15.06.2016 / 18:01