Questions tagged as 'json'

1
answer

How to deserialize JSON using Gson with generic list?

I need to deserialize JSON to a generic list, but I'm having an error that I believe to be in the conversion: Method call: AtualizarJSON at = (AtualizarJSON) DeserializaConsulta(AtualizarJSON.class, resultadoJSON); Method: private <...
asked by 18.11.2014 / 00:48
1
answer

Convert JSON to Array in Javascript

Good afternoon, it's my first question here. I'm getting the json below through an ajax request. [ {"SEMANA":1.0,"PRODUCAO":0.0,"PRODUCAO2":0.0}, {"SEMANA":2.0,"PRODUCAO":29280.0,"PRODUCAO2":55992.0}, {"SEMANA":3.0,"PRODUCAO":93...
asked by 03.12.2014 / 20:36
1
answer

Load table with json using Datatables

I'm using the jquery Datatables version 1.10.7 plugin. I'm trying to load a table following the following structure: JSON { "d:" [ { "IdNotificacao":null, "Contrato":{ "id":631,...
asked by 11.06.2015 / 17:35
2
answers

How to store state of a checkbox

I'm developing an application to make a school call list, I created Listview and populated it with data from a Mysql database, using Json . The problem is the following, I need to store the state of the selected checkbox...
asked by 06.04.2014 / 05:28
2
answers

How to format JSON message to read easily

I need to do JSON message DEBUG. I would like one to have a formatting mechanism similar to the one you have in Eclipse for Java and JavaScript code formatting, but via console.     
asked by 24.05.2014 / 21:58
1
answer

How to validate the JSON schema in C #?

Follow json (it only has 1 error, it can have several errors): { "errors": [ { "code": "XX-55", "path": "customer.id", "description": "Cliente não encontrado" } ] } Another example of the return: (Multiple erro...
asked by 30.08.2018 / 16:10
1
answer

Read JSON and transform into Java list

I have the following JSON: { "_status": "sucesso", "_dados": [ { "IdIntegracao": "H1xo7lOOX", "SacadoCPFCNPJ": "08896903912", "SacadoEmail": "[email protected]", "SacadoEnde...
asked by 14.09.2018 / 16:34
2
answers

How to return the name of an existing object in a JSON

I have the JSON file below: { "uid1":{ "start_time":"20140815", "name":"name 1" }, "uid2":{ "start_time":"20141229", "name":"name 2" }, "uid3":{ "start_time":"20140809", "name":"name 3" }, "uid4":{...
asked by 17.07.2014 / 18:44
2
answers

Help in a PHP logic

I have a big problem for me * ini_set('display_errors', true); error_reporting(E_ALL); header('Access-Control-Allow-Origin: *'); # header('Content-Type: application/json'); header('Character-Encoding: utf-8'); define( 'MYSQL_HOST', 'l...
asked by 10.05.2018 / 22:04
2
answers

I can not extract information from Json in Laravel

I get a request like this ... public function store(Request $request) { return response()->json($request->all()); } The output is this: anexoPdfGuia: {} guiaFiscal: "{"empresas_id":"40","tributo_id":4,"mes_referencia":4,"vencime...
asked by 11.05.2018 / 14:55