Questions tagged as 'json'

5
answers

How to serialize C # objects to a JSON or XML file

I am working with a hospital system and I would like to know how I could export the information of my objects to files with a readable format such as JSON or XML , to be used as input to another program that processes them. These...
asked by 10.02.2016 / 23:36
5
answers

Error android.os.NetworkOnMainThreadException in using Android HttpURLConnection

I try to make a request for a resource json using HttpURLConnection I test the following code in onCreate () try { URL url = new URL("http://localhost/testrealm/api/v1/status"); HttpURLConnection urlConnec...
asked by 10.06.2016 / 14:41
3
answers

Using JSON in PHP

I am using json-simple from Java to receive and request data in JSON format from PHP. But I do not give with the way to do the correct code from PHP to send and receive and in Java to receive. JAVA code to send and receive import org.js...
asked by 02.02.2016 / 23:40
4
answers

Pass JavaScript variable to PHP? [closed]

By means of a combobox (loaded by names of a database using a while I made a function of javascript that when I choose a name of combobox I bring in a separate input the card of that name . I have read about js...
asked by 22.12.2016 / 17:46
1
answer

How to create select for each element in an associative array that I receive as a response to an ajax post

I am working on a website with CodeIgniter, I need to create a select for each element I receive in an array or json. I do not know which is the best option as a response to a post I do with ajax. The problem I have is that I receive an array li...
asked by 05.10.2016 / 16:18
1
answer

JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data

I have a problem with receiving a JSON file from a PHP to a Jquery:    SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data In my PHP I have: <?php if(isset($_POST['id_part...
asked by 09.08.2018 / 11:23
2
answers

JSON Parser check integer is Null in Java Android

I get a JSON that sometimes the numeric fields have value or null : { duration: null } Right in the sentence: jArray.getJSONObject(id).getInt("duration"); The error occurs: W/System.err: org.json.JSONException: Value null at...
asked by 21.01.2016 / 15:53
1
answer

Error serialize Json abstract class

I'm trying to send a list of abstract objects to% of signalr Server structure (where all values are generated); public abstract class Comida : Objeto { public int valorNutricional; public abstract void Comido(Cola jugador); }...
asked by 24.08.2018 / 10:54
1
answer

Show array list in Vuejs

I want to show my list of ingredients in Vuejs of a juice, this list has inside an array that is to say this is my json object category 0 _id "5aa875ab69355c25d0132a41" title "Refresh" ingredient 0 category 0 "5aa875ab69...
asked by 16.03.2018 / 22:04
2
answers

Parse Json to Objects C #

I have a Json that comes down from an Api of wunderground and it's huge. How can I pass it to an object from which I can retrieve the data in a legible and neat way? I tried that, but it did not work. public void ProcesaJson{ var cli = ne...
asked by 15.01.2018 / 20:06