Questions tagged as 'json'

1
answer

Error Receiving data from an API in javascript

I have a problem, I am receiving the data from an API and to be able to graph, the problem that I have is that I receive all the data and when it is updated the other data are added, that is, the last 20 are plotted, plus the 20 recent, and I ju...
asked by 23.08.2017 / 20:11
2
answers

Go through list of objects in JSON

I have this JSON { "cod": "200", "message": 0.0025, "cnt": 40, "list": [ { "dt": 1503586800, "main": { "temp": 307.92, "temp_min": 307.92, "temp_max":...
asked by 24.08.2017 / 16:05
1
answer

How to put onclicklistener to a listview filled with json

I'm trying to make a listview filled with json. So far, it worked for me, but when I try to assign the onclicklistener to the list, it marks me an error, any suggestions? package com.tappmovil.volleytest; import android.support.v7.app.AppComp...
asked by 06.08.2017 / 08:16
1
answer

Reload my AJAX table

I am trying to make a table update automatically, by calling AJAX , for example when I change the range of dates these are sent to a model that executes a function and takes the parameters and performs the query. The problem here is tha...
asked by 20.07.2017 / 21:07
1
answer

json data optimization for better extraction

I need guidance as to how to structure some data for a better extraction and utilization of these. The data I have has a structure similar to this: Clima-> region->provincia->ciudad->Farmnacias-> Bencinas-> informacion_adi...
asked by 12.07.2017 / 07:00
1
answer

NULL value when passing data json file to php

I have a json file with this element: { "id":"1", "nombre":"Luis", "Descripción":"Alumno" } The php file looks like this: <?php $json = file_get_contents("json.json"); $data = json_decode($json,true); var_dump($data); ?&...
asked by 17.07.2017 / 15:53
2
answers

MySQL query in php does not recognize variable sent from ajax

To pass the variable from JavaScript to php I do it with Ajax in this way: <script type="text/javascript"> function ejecutar(num_js){ $.ajax({ url: 'mi_php.php', type:'POST',...
asked by 14.07.2017 / 23:52
1
answer

Undefined in the PHP return to the front with JSON

I am trying to create a session validation with Jquery, AJAX, JSON and PHP. I have this code. This is the generic function that I invoke in each query, I modified the code because apparently I was doing the return inside the AJAX function, I...
asked by 20.06.2017 / 21:44
2
answers

Send console values by REST API

I have a project in Spring Boot that connects to Postgresql and sends the values by console , what I'm looking for is to be able to send it through JSON in a REST query, but I do not know which part to change the project. That's what I'm lookin...
asked by 09.08.2017 / 23:23
1
answer

Retrieve variable sent in JSON in datatables

Dear programmers, I come to you based on the following problem. I work on a system and I'm using Datatables. So far I have not had major problems, but now I'm with one that is pulling green hairs. I have in my mysql Database, a table called labo...
asked by 11.06.2017 / 03:32