Questions tagged as 'json'

1
answer

Save data in Json with javascript

Hi, I have a file comments.json that contains the following: { "comments": [ { "id": 1, "post_id": 2, "name": "Javi", "email": "[email protected]", "body": "Esto es...
asked by 04.01.2018 / 11:25
1
answer

How to read a JSON from a URL

I have to read this Json: JSON in question For this I have the following code and yet I do not see the error. Can someone help? To be able, I would like to do it with the Gson google libraries public class JsonUrlReader { pub...
asked by 13.07.2017 / 22:08
1
answer

How to get a single value of a Json [duplicate]

I have my response that comes in json I get it in the following way: StreamReader sr = new StreamReader(newStream); String json = sr.ReadToEnd(); With a WriteLine it shows me: [{"id":"1","correo":"[email protected]","clave...
asked by 08.02.2018 / 02:49
2
answers

create a json file in Python 3.6.1

I want to create a json file and save it in a path x, below the code I'm occupying. import json import os ruta = {} ruta['nombre']= 'Jose' ruta['edad']='15' ruta['nacionalidad']='Mex' carpeta = 'C:%sPruebas' % os.sep os.chdir(carpeta) #esta es...
asked by 08.02.2018 / 00:01
2
answers

Read Json with ajax with names without quotes

I am looking to read through jquery and ajax an object json from an external server. When making the request, the server returns a supposed json file with the following format: { Status: 'Success', Data:{ 'primero': {...
asked by 04.04.2017 / 18:43
1
answer

Problem when creating a JSON from Servlet

Good, I want to go from a Servlet to a JavaScript a Json with the following data. A dealer has several orders assigned, so I want to pass the id and the position of the delivery person, along with the id and address of the o...
asked by 26.01.2017 / 15:00
1
answer

How to send two variables ajax, json

Hello I would like to send by post with the following code, two variables I can only send one, any suggestions? Thanks <script type="text/javascript"> $(document).ready(function() { $("#au").change(function() { $.ajax({...
asked by 10.01.2017 / 17:44
2
answers

Why does not my project with JQuery work on github pages? [closed]

This is my first project using JQuery that obtains data from an API and shows them link It works well in codepen, but when I uploaded it to github pages the requests to the API stopped working link If someone knows why the projec...
asked by 24.11.2016 / 16:05
4
answers

How can I push a javascript fix of type {}?

I'm trying to generate a dynamic array of type {} tabla.each(function() { var ID = $(this).find('td:eq(0)').html(); var fechaingre = $(this).find("input[id*='dfi']").val(); var fechafin = $(this).find("input[id*='dff']").val();...
asked by 20.01.2017 / 11:12
2
answers

Display data in a ListView from a database

I am decoding the response in JSON , and I want to show that data in ListView , how can I do this task? . I leave my progress. public void onResponse(String response) { System.out.println("INFORMACIÓN OBTENIDA DE LA...
asked by 16.01.2017 / 16:19