Questions tagged as 'json'

1
answer

how to do push array inside an object that is in an array?

I'm trying to create a JSON and I need to do the following: var arreglo = []; var sumar = () => { var id = arreglo.length + 1; arreglo.push({id: id}); console.log('Arreglo', arreglo) }; sumar(); as Result prints: Arre...
asked by 18.08.2017 / 21:35
3
answers

travel json file without tags

Hi, I have a serious problem, I have a json file with the following format: { "alberto": { "agis": "admin", "lima": "admin" }, "pedro": { "agis": "admin" }, "manu": { "lima": "admin" },...
asked by 21.02.2017 / 02:22
1
answer

Take Json data

I've been trying for a while to get the JSON of the API of League of Legends data and I can not find a way. I give the example of one of the JSON that I can not go. { "23385178": { "summonerId": 23385178,...
asked by 03.04.2017 / 19:47
2
answers

Consume web service with PHP?

I need to consume data through GET and POST to a web service, this operation I have to do from PHP. My question is, what are the components that I need to be able to make this consumption? or any basic example of how this is done?     
asked by 26.04.2017 / 20:32
1
answer

Go through a JSON array and display certain PHP data

A JSON is answering the following: [ { emple_cedula: "7913", emple_nombre: "PEPITO", emple_apellido: "PEREZ", resultado: "60" }, { emple_cedula: "7913", emple_nombre: "PEPITO", emple_apellido: "PEREZ", resultado: "50" }, {...
asked by 20.04.2017 / 18:03
2
answers

Validate Json API response

In the last days I have had a problem that I have not been able to solve, I hope to get your help, please. The problem is this: I am creating a page which has a module in which inputs are created dynamically but each of those inputs must return...
asked by 25.03.2017 / 16:58
2
answers

Json error converting JSONObject

I have tried in every possible way, I have a script that receives a json that comes from an url of a web api, but when I try to pass it by JSONObject it throws me error, this is the piece of the code where it gives error Response respon...
asked by 10.01.2017 / 21:05
2
answers

send a JSON via POST with JavaScript

Let's see ... according to the comments I would have to edit the thread, but no matter how much I do it ... I have to send a json per post, and when sending it I would have to receive one in which I would say if the login is correct or incorr...
asked by 04.11.2016 / 12:50
2
answers

someone knows why the json does not print

$from $to = 20; $query = "SELECT idempleados,nombre,apellidos FROM empleados LIMIT ?,?"; $result = $mysqli->prepare($query); $result->bind_ param('ii', $from, $to); $result->execute(); /* bind result variables */ $result->bind_result...
asked by 28.10.2016 / 15:28
5
answers

Result: [object], [object] when importing a JSON file

I have a problem getting data from a JSON file, when I try to get the data from this file, I get as a result: [object], [object] { "categories": [ { "categori_id": 1, "name": "drinks" }, { "categori_id": 2,...
asked by 19.10.2016 / 14:47