Questions tagged as 'json'

2
answers

Error parsing json in android: t user of type org.json.JSONObject can not be converted to JSONArray

I have a String that I need to parse and it gives me the following error:    Value {"name": "test", "code": "1", "photo": "test"} at user of   type org.json.JSONObject can not be converted to JSONArray my json's format is as follows: {"...
asked by 12.12.2017 / 23:49
3
answers

Delete array element in PHP

I have tried multiple codes in PHP to remove an element from an array of strings by their name. There are already two days of infinite searches on the web, without any solution. The string json: ["stringNumero1","stringNumero2","stringNumer...
asked by 15.09.2017 / 21:54
1
answer

Queries about JSON Jquery

I obtained data from an SQL query with AJAX, and in JQuery I get the results in the following way: var Data = $.parseJSON(result.d); var datos = Data.Resultados; // .Resultados es el nombre de mi tabla con los resultados de SQL Is it pos...
asked by 22.08.2017 / 17:32
1
answer

JSON from PHP, travel with JQUERY

I have generated a JSON in a PHP with MySQL data with the following code: header("Content-Type: application/json"); while($spot = mysqli_fetch_assoc($dbspots)) { $jsonspots[] = $spot; } print_r($jsonspots); This generates this output:...
asked by 21.08.2017 / 14:40
2
answers

Send data to a Laravel driver with AJAX

I am developing a web platform for an IPS with Laravel 5.4 and PostgreSQL 9.6 . The problem I have is the following: in the patient registration form, I would like to see the application by means of Ajax in the database when losing the focu...
asked by 28.08.2017 / 03:47
1
answer

Combine two Json objects in java

I have two JSONObjects with the same structure, but I want to combine them so that the characteristics are kept in common and that those that are different give priority to the second object. Example: JSONObject obj1 = new JSONObject("{ "na...
asked by 15.12.2017 / 22:32
2
answers

Variable loss in Android Studio

Good, I am trying to use a query to a database, and the truth is that I have several questions, first of all I am very very new to this, so I can understand part of the code, so be patient. I make a query and recover the data from the server,...
asked by 07.08.2017 / 20:28
2
answers

Jquery DataTable display PDF in a row

Good I have used Jquery DataTable works perfectly but I've been looking for the solution if there is any way to add a <a> </a> element to the table rows. In another project I have something like that. <td class="tex...
asked by 05.09.2017 / 14:52
2
answers

Return problem in Enumerable in WebApi

I'm doing a webApi, which has its entities and its context class that it creates through the database, with its respective command. Everything is working perfectly for me, the drama is when I want to return a set of objects in JSON and it onl...
asked by 14.07.2017 / 02:49
1
answer

Bring a url with special characters

I have a web service made in java in the Netbeans IDE, in which I want to bring back a url that contains special characters like the following + url example: link When I use the get method to return the value to consult (ie the name of the...
asked by 20.06.2017 / 23:56