Questions tagged as 'json'

2
answers

Access a data inside a json object (no array)

I'm working with angularjs, I have a query to bring me a user by document number, I return a json with the data, what I need is to access the data idUsuario of that json object to inject it elsewhere, to give a console.log in the variable to whi...
asked by 28.08.2017 / 21:04
3
answers

Android Volley JsonArrayRequest

The PHP that gives me a list of records through an SQL returns the following PHP $result = $con->query($query); for ($set = array (); $row = $result->fetch_assoc(); $set[] = json_encode($row)); print_r($set); RESULTADO Array ( [0] =>...
asked by 18.07.2017 / 15:28
1
answer

JSON datatable php

I'm having trouble with my json, I'm not finding him around. My code is this: $salida = '{"data": ['; $paso = false; $i=0; foreach ($cirugias as $cirugia) { if ($paso){ $salida .= ','; } $salida .= '['; $salida .= '"'.strtoupper(nor...
asked by 22.05.2017 / 21:54
2
answers

Deserialize JSon

I have a problem when dezializing a json that I downloaded from a service. The structure of the json is as follows: "{\"d\":{\"tipo\":\"valor\",\"Id\":valor,\"Result\":valor,\"d\":\{\\"Nombre\\":[{\\"idnombre1\\":valor,\\"idnombre2\\":\...
asked by 04.02.2017 / 20:48
1
answer

Django paginator in AJAX

I am trying to return the elements of the table professionals and the next page, both data in a JSON. The problem arises when I see the JSON that is returned: my professionals model is a string, not an array of objects. Here I leave my co...
asked by 19.12.2016 / 15:01
2
answers

ListView.setAdapter "null Object Reference"

I'm implementing a ListView loaded with an External database, and I'm getting the data with a JSON This project had it running smoothly in an Activity, but wanting to implement it in a fragment marks me these errors: This is the Code that...
asked by 14.12.2016 / 03:05
2
answers

Starting with SQLite

I work with NodeJS , for a while, I've been working with JSON files to store information from many users, but now I'm facing a problem, the corruption of the data (the file is being rewritten almost constantly), so I want to move all functi...
asked by 03.01.2017 / 21:15
1
answer

Cors error in AngularJS

I have a question that I have been trying to find a solution for, but nevertheless it has not been entirely clear to me, I have an application made in AngularJS that consumes a JSON from an external source , the detail is the following I'm u...
asked by 06.01.2017 / 06:12
1
answer

Extract date as String Sqlserver C #

When I run a query on sql server from C # the fields of the date type are extracted as Date(1445580000000) when formatted in JSON. Although in the query specify the CONVERT to do so in yyyy-mm-dd , the same thing happened to m...
asked by 27.10.2016 / 01:28
2
answers

consume Json in android studio FATAL EXCEPTION: Thread-13149

I have the following code to consume data from a webservice: public String enviardatosGet(String user, String pass){ URL url = null; String linea = ""; int respuesta = 0; StringBuilder resul = null; try { url = new...
asked by 24.11.2016 / 22:32