Questions tagged as 'json'

3
answers

Separate a json string, saving in variables with their respective value

This is the result of consulting a webservice {"Nombre":"Juan","Apellido":"Luna","Edad":26,"FechaNacimiento":"09/03/1990 12:00:00 AM"} I need some way to separate the values and save them with the name of the variable and the value that cor...
asked by 08.03.2017 / 19:45
2
answers

Code to get xml or Json Java [duplicate]

I'm trying to get the data that comes from these link link link I have tried many methods but in the end I always get an error when going through this line JSONObject jsonObj = new JSONObject(json); OkHttpClient client = n...
asked by 11.01.2017 / 16:11
1
answer

How to get data from the cloud or localhost on Android [closed]

I am working on an Android application, for which I must manipulate a Vector. The insertion of objects into this Vector is done manually, each time the application is executed and I keep the data in the internal memory state. What I would lik...
asked by 30.12.2016 / 18:58
1
answer

Retrieve value of an array of json array with jquery

I have the following data that is returned in json to recover the ones with jquery $response = array($query_license,$query_estate); if ($this->request->is('ajax')) { echo json_encode($response,TRUE); die(); } t...
asked by 20.01.2017 / 18:07
1
answer

I can not get the JSON from an AJAX call

I have the following code in which I make several AJAX calls to receive a JSON from an API, depending on the first call I make other calls, that work correctly, my problem is in the last call, with the JSON that returns some URLs, what happens i...
asked by 19.11.2016 / 13:46
1
answer

Data is not printed with the json_encode

<?php include ("connex.php"); $sql = "Select item_parent.id_item_parent, item_parent.html_item_parent, item_parent.km_cambio_item_parent, item_parent.nombre From parent_tipo left Join item_parent On item_parent.id_parent_tipo = parent_ti...
asked by 25.10.2016 / 13:31
2
answers

Incorrect format when generating JSON in PHP

I'm having trouble creating an array to pass it to JSON format. When traversing the result of a query in the database, I assign the values to an array. After this, I format the JSON by putting a header to the list of values. The problem is...
asked by 05.11.2016 / 14:03
1
answer

Jquery and JSON - I can not show the data

I'm learning jquery and trying to understand Json. I have a page called index.php where when loading, a query of all the products is generated by php, it dynamically arms me an amount of divs (.boxes) and shows them to me. The iss...
asked by 18.10.2016 / 15:52
1
answer

Unity and C #. Change FontSize of a JSON text

Within OnGUI() I have: GUILayout.BeginArea(new Rect(75, 500, 900, 200)); Inside, I take the JSON and show its contents: GUILayout.Label(json[0][0][textInComp][0].Value, GUI.skin.textArea); And I finish: GUILayout.EndArea();...
asked by 20.10.2016 / 10:17
1
answer

JSON inside a closure

I have a JSON , for example: var text = '{"name":"John Johnson","street":"Oslo West 16","phone":"555 1234567"}'; And I want to insert it inside a closure in JavaScript , but read the JSON from outside the closure , I can not read it fr...
asked by 22.11.2016 / 16:42