Questions tagged as 'json'

3
answers

How can I send a JSON object to a PHP?

I want to send a JSON string from Javascript to PHP, and then in PHP do a json_decode, but one thing fails me. function request(data) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.re...
asked by 13.07.2016 / 11:08
2
answers

Read JSON from PHP with Javascript

I have a problem to find out how to put a Json in a cycle to read all the data of the array and generate variables with JS. In this way I create the Json arrangement function info(){ global $conn; //Query a seleccionar en la base d...
asked by 12.12.2018 / 17:01
1
answer

Invalid JSON error reponse with DataTables

I can not load the information of a JSON in my table. When I get information through Ajax with DataTables , it tells me the error:    DataTables warning: table id = dt_client - Invalid JSON reponse. For more information about this error...
asked by 02.03.2017 / 08:28
2
answers

How can I get the data of the following json in java?

You see, I have the following json: "signaturesType":[ "SIMPLE" ], "docs":[ "contrato" ] How can I get the values inside the tags signaturesType and docs. What is strange about me is that i...
asked by 17.10.2018 / 17:37
1
answer

Build JSONArray from SQLite database

I have a method with which I want to put some records of the BD in a JSON array, for this I first created a JSON Object for each field name to have its value, the detail that I have 50 records and it creates me a JSON array with 50...
asked by 28.09.2018 / 23:40
1
answer

error when deserializar (csharp - Xamarin) a json (php)

Classes public class Usuario { public string id { get; set; } public string nombre { get; set; } public string nick { get; set; } public string password { get; set; } public string email { get; set; } } public class T {...
asked by 15.10.2018 / 19:25
1
answer

Get the key of a JSON in PHP? (Not the value but the key)

I have a JSON Object that sent it from android to PHP it's similar to this {"1":"insert 1", "2":"insert 2", "3":"insert 3" } the number is the id of the record and the insert is a sql instruction that is executed to save values in a BASE n...
asked by 17.09.2018 / 18:52
2
answers

I can not use a Json file

What happens is that I'm trying to use this Json to locate on the map and show the information: [ { "codigo": 0, "sucursal": "PUERTA DEL NORTE MEDELLIN (Centro Comercial)", "region": "ANTIOQUIA", "direccion": "Diagonal 55 #34...
asked by 14.09.2018 / 16:05
1
answer

Any way to "align" a JSON using JQuery?

I have a form that returns a JSON with the variable data entered in the input of it. Below this form, through the use of AJAX, it returns the expected response in JSON format under the button to send the form! What I want to know is if the...
asked by 17.09.2018 / 21:30
2
answers

Insert SELECT in a table

I'm trying to insert all the fields with a specific id into a table, I get this data from a select, I want to put them in a table to make queries with the data in this table as a reference. This is what I have declare @json varchar(max)...
asked by 11.09.2018 / 20:36