Questions tagged as 'json'

1
answer

How to map a checkbox as bool (bit in SQL server)?

I know they always ask for code, but my question is basic. I also know that you can qualify it as "general knowledge" or "subjective response", but although it seems incredible, there are not many topics in Spanish that speak of the subject....
asked by 26.05.2017 / 08:34
2
answers

Error using JSON.parse: "Uncaught SyntaxError: Unexpected token; in JSON at position 3101 "[closed]

I'm doing a web application of a test and I have a JSON file with the questions, but I have an error trying to convert the JSON file to a javascript object using the JSON.parse() function. Here is the code: function escogerPregunta (...
asked by 10.05.2017 / 02:37
4
answers

Show an element of a JSON with an ID

How can I show the iP that belongs to an "ip_id" within elements?. data.json { "json": [{ "list_ip": [{ "1": "190.15.20.18", "2": "10.10.10.100", "3": "10.20.30.40" }], "cosas": [{ "elementos": [{...
asked by 20.04.2017 / 17:17
0
answers

Code 400 when generating preference

I'm having a problem, that by generating a payment preference with this JSON: { "items":[ { "title":"pago 3 anticipo", "category_id":null, "quantity":1, "currency_id":"ARS", "unit_price":1...
asked by 10.04.2017 / 14:09
1
answer

How can I extract the data from this JSON URL using javascript and html? [duplicate]

I want to extract the data from a json using javascript and html . What I need is to show the values of the properties id and name . This is the URL of the API. The answer is this: { "mohademago": {...
asked by 15.04.2017 / 20:44
1
answer

http request with AngularJS to a PHP server that responds with status -1

I am sending an http request from Angular to a PHP server and he replies this: { "data": null, "status": -1, "config": { "method": "POST", "transformRequest": [ null ], "transformResponse": [ null ], "...
asked by 07.04.2017 / 03:47
3
answers

Failed to return JSON: "Unexpected token in JSON at position 0" [closed]

I execute the SQL query and I receive the array processed with fetch_assoc . Finally in php I return it through ajax with json_encode . echo json_encode($this->rows); And this would be the code in JS: function se...
asked by 07.04.2017 / 00:45
2
answers

how can I get the following json file from a php query - sqlserver

I have the following query $query="SELECT nombre,edad,genero FROM ..."; $result = sqlsrv_query($_conexion,$query) or die('Error en la consulta'); while($row = sqlsrv_fetch_array($result)) { extract($row); $mundos['data'][]= a...
asked by 11.04.2017 / 06:52
2
answers

restful with foreign keys

I'm doing the final project and I have a restful web service created in Netbeans that uses a remote database to a Glassfish server. We have to create two apps a desktop and the other Android in which you can manipulate / consult in this database...
asked by 04.04.2017 / 12:27
0
answers

pass a list of objects containing other objects to Json in Java

I have a web service hosted on Java in Netbeans (NO MAVEN) with several classes that are related to foreign keys. For example, I have a Notes class that has two foreign keys (idUsuari and idIncidencia). From the Postman, I do a GET with the meth...
asked by 06.04.2017 / 16:25