Questions tagged as 'json'

1
answer

How to pair JSOn

Hi, could you help me parse this JSON since I do not succeed? { "pages": [ { "name": "página1", "elements": [ { "type": "text", "name": "pregunta1" } ] } ] } var obj = JSON.par...
asked by 22.03.2018 / 18:59
1
answer

Is it possible to create an HTML table using the structure of a JSON?

I'm trying to create a table using a JSON file. What I'm looking for is to create the table based on the structure of the JSON, for example, I have the following JSON: { "Persona":{ "nombre":"Juan", "edad":28, "Residenc...
asked by 21.05.2018 / 03:50
2
answers

Error converting to list in WCF

This is my code: My service implementation .svc public List<string> getClientes() { using (var context = new Model.CivarTransporteModelContainer()) { return context.Cliente.Select(x => x.CLN...
asked by 21.01.2016 / 22:14
1
answer

Store a MySQL SQL Query in JSON

the query is the following I have this query: Edit > Added Query in PHP: if (!($resultado = $conexion->prepare(" SELECT facturas.*, renglones.producto, renglones.cantidad, renglones.precio_unitario, renglones.tot...
asked by 13.10.2018 / 06:25
2
answers

Generate TreeView with Json

I'm generating a TreeView with a Json, the library I'm using is bootstrap-treeview.js. The structure of the Json that I receive is the following: data = [{ "Nivel": 0, "NombrePuesto": "Coordinador" }, { "Nivel": 1, "Nom...
asked by 05.04.2018 / 01:08
1
answer

How to convert json to object in c #?

I have the next json. {Estudiante: {nombre:'paco', edad: 20, sexo: 'm'}, Recibos: [{folio:'A1213', fecha:'10-02-2017', total: 56}, {folio:'A1213', fecha:'10-02-2017', tot...
asked by 09.11.2017 / 21:13
2
answers

Problems in AJAX query of POST type, sending JSON to Laravel controller

I have the following problem: I am trying to make a AJAX query POST by sending JSON to a controller in Laravel , to then record that information in the database, but I can not find where the error is because the query is not executed corr...
asked by 18.08.2017 / 13:07
1
answer

Create JsonResponse UTF-8 in Django

Is there a simple way to cancel DjangoJSONEncoder.ensure_ascii and put it in False or print text different from ascii in django.http.JsonResponse in any other way?     
asked by 20.09.2017 / 03:49
2
answers

Is it possible to modify the JSON options in html / template?

html/template has a very convenient feature. If I have a template like this: <html> ... <script>var x = '{{ .Data }}';</script> ... </html> The variable Data can be of any type, and html/template...
asked by 11.09.2016 / 20:52
2
answers

Read a JSON file on ESP8266

I need help to read a JSON file in an esp8266, the esp must open the file by means of a code in LUA, read the data it contains to assign them to the configuration of the static ip. The json file contains the following: { "ip": "192.168.2.252"...
asked by 19.04.2016 / 01:27