Questions tagged as 'json'

1
answer

Gson Library Changing util.Date

When using the GSON library for JSON manipulation, I noticed that when parsers are done the date is being changed, it's tiny, but it's enough to break my unit test with JUnit . > Follow a sketch code to show the strange beh...
asked by 17.10.2017 / 22:12
1
answer

Receiving string JSON via Socket

I'm getting a stream with JSON strings and I'm displaying it in a TMemo. It happens that I am not able to process JSON correctly because it does not always come with the same amount of characters from the server. You would need to process the JS...
asked by 18.10.2017 / 02:12
0
answers

JSON for websocket gives error

I send a JSON to the websocket. JSON and sending is defined like this: var binary = btoa(Uint8ToString(view)); var toSend = { 'fileName': fileName, 'sequence': SendedChunks, 'data': binary.toString() }; var z = JSON.stringify(toSend...
asked by 30.09.2017 / 01:51
1
answer

Array has values, but its length is zero [closed]

I need to iterate over this array , however, although it is not empty, length of it returns 0 as you can see, does anyone know the reason? Thescenarioisasfollows:I'mgettingJSONdatafromanAPIanditeratingovertheobjectstoputthevalue...
asked by 30.09.2017 / 10:46
2
answers

Find the id inside the array [] in json

Good evening! I'm having a problem finding brackets case by case. I'm trying to get the data from "stats" . But the only reference you have is "accountId" or "summonerName" . To get a reference to "stats" you need to get the "partic...
asked by 17.09.2017 / 04:23
1
answer

Convert JSON to Array in java

I have a JSON that represents a test query: {"dctitle":"TestesStatus", "oslc_cmtotalCount":2, "oslc_cmresults": [ {"dctitle":"33643640", "rdfabout":"XXXXXXXXXXX", "dbid":"XXXXXXXXXXX", "depto":"XXXXXXXXXXX", "sigla"...
asked by 13.09.2017 / 21:25
0
answers

Getting input with jquery and ajax

I have the following doubt I have a web application that I want when I log into the "index.html" home page to get the 'name' and 'email' and put it with jquery on another page 'paginaprincipal.html' p> example: index.html <form name="f...
asked by 11.09.2017 / 20:39
0
answers

"Missing Template" when trying to use JSONView in CakePHP 3

I'm trying to create a JSONView response for my application. I followed the steps described in link , but I still get the error < strong> Missing Template , follow the code below: In the routes.php file: $routes->setExtensions(['json'...
asked by 13.09.2017 / 16:51
1
answer

Android Upload JSON

I need to get information from a JSON, I created a code in php that transforms the database into mySQL into JSON link
asked by 12.09.2017 / 15:54
1
answer

Java Web + Ajax + Servlets

I'm having a hard time trying to get the date in Ajax. When I run the code, I get the 200 status and in network in the Chrome debugger I can see the return, but I can not do anything else with the date, like giving an alert or anything usef...
asked by 08.09.2017 / 05:38