Questions tagged as 'json'

2
answers

Refresh query of a JSON every X seconds

The following Activity gets the data of a file in PHP that generates a JSON with the data obtained from MYSQL , I am new in this JAVA ANDROID , and I have little experience in PHP , I barely defend myself,...
asked by 18.01.2016 / 02:26
2
answers

Get JSON value in PHP

I'm having trouble accessing a specific value of a variable that returns a JSON in PHP. My code is as follows: //Llama el SP $sql="CALL tramites_G(".$valuesInsert.")"; $resultado = mysqli_query($database,$sql); if (!$resu...
asked by 24.08.2018 / 22:06
3
answers

How to convert a JSON file to a table with dynamic columns in HTML

What happens is that I want to read a JSON file and that as soon as I read it, I created a table from the file with its respective fields. As for example: { "nombre":"Ana", "edad":20, "Hobbie":"Cantar" } And the table is created: Name Age H...
asked by 10.03.2018 / 17:53
3
answers

Transform a JSONArray into an ArrayObject

My problem is the following, I bring a json from my api , the same I pass it to a JSONArray the topic this is that I want to arm a Array<Especialidad> and I do not know how to do it. Specialty_connect public...
asked by 09.02.2018 / 23:18
3
answers

Pass variable when clicking on a listView item to another activity [duplicated]

Good morning. I have this query because I am too new programming in Android Studio and I do not know where to go. I have a listView that I load with data from a database that I have on my PC and I obtain the data by a php file. That's ok, the...
asked by 22.05.2017 / 05:20
1
answer

Show more than one result json

function OrdersCallback(json) { for (var o = 0; o < json.length; o++) { $('#summary').append('<b>Order Number:</b> ' + json[o].order_number + '<br />'); $('#summary').append('<b>Item:</b> ' + json[o].line_items[0]...
asked by 28.03.2017 / 20:58
1
answer

Get a Value of an Array in JavaScript

Greetings to all, I have the following JavaScript code: var Lista=[]; $.getJSON("php/consultas/TraerDatos.php", function( data ) { $.each(data, function(id,value){ var elemento = { 'Proyecto':''+value['Pro...
asked by 22.11.2016 / 17:23
1
answer

Insert data into an array inside a json

I need to store data in an array that is inside a json, that is, I will have several users that will have data let nombresUsuarios={ datos:[{nombre :''}, {acierto:''}, {fallo :''}]...
asked by 08.01.2017 / 07:18
3
answers

Generate a JSON file from PHP

I'm connecting to my database, but I do not want to show the result in the template of the page but to generate a file .json . The PHP code I use is: <?php $sql = "SELECT * FROM AttributeKeys WHERE atID = 1"; function connectDB()...
asked by 06.09.2018 / 12:03
1
answer

Fail on request data with json

I have a problem with a data request with json from a form that shows me this error: Uncaught SyntaxError: Unexpected end of JSON input     at JSON.parse ()     at XMLHttpRequest.xhr.onload (form.js: 52) What could be due? Thanks the model-ad...
asked by 30.07.2018 / 12:15