Questions tagged as 'json'

3
answers

Creating a List from a Json C #

I have a question regarding JSON, I have the following JSON: { "jsonrpc":"2.0", "result":{ "nr":26, "lista":[ { "codigo":"2", "nome":"Pratos Quentes", "foto":"./images/cupcake.png" }, {...
asked by 20.04.2017 / 22:39
3
answers

What JSON structure to use for large data volume without loss of performance?

I'm thinking of using JSON in a project, as it is highly accepted and there are many ready-made libraries that encode and decode it into other objects (arrays, for example), but there is something that worries me. Suppose a Web Service return...
asked by 14.11.2014 / 02:28
4
answers

Receive json data in PHP

I'm having trouble receiving JSON data in PHP to save to the database, and this data is sent from a python script , I already tried json_decode using the $_REQUEST variable, but without success, when I write to a .txt I can...
asked by 09.11.2015 / 12:26
2
answers

Deserialize Json where the key is a number

I'm trying to deserialize Json with C #, but I've encountered a problem. In Json you can use numbers in the names of "keys" ( keys ), but we can not use numbers in property names in C # Example: Json : "c":[ { "1":23200...
asked by 03.02.2016 / 01:02
2
answers

What is faster, access data in file or database?

In performance, which method is faster to recover data, 1) read a file (which will be generated only once with PHP) or 2) get this data from a database? This data will always be displayed on the page in question. So far I'm using a .json...
asked by 29.12.2014 / 18:39
3
answers

generate a json file with java

   Iterative Insertion: 7841910ns - 7ms       Iterative selection: 2677762ns - 2ms       Iterative merge: 708154ns - 0ms This algorithm was made in Java , in the java console is printed several values, being: search algorithm name t...
asked by 30.04.2015 / 00:59
2
answers

HTTP requests in C ++

How can I make a request in a URL that would return a jSON in C ++? I need to access a /return.php URL that returns the string {"status":true,"hash":"12#87!!3@WSS\/.","user":"admin"} and work on my project, accessing json as obj.status f...
asked by 05.09.2014 / 16:34
2
answers

Return reading in JSON

I can read json's return in the format [{"celular":"123456","_id":"1"}] The code that works with json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new JsonArrayRequest(url, new Response....
asked by 11.10.2015 / 16:46
4
answers

Insert the paragraphs of a JSON file into a DIV

I have a file json that in its content it contains paragraphs . These paragraphs are separated by \n but when I insert content the paragraphs are not separated and instead of line break I have a space in DIV . In my view my soluti...
asked by 12.12.2013 / 13:48
4
answers

How to disable JavaScript field?

I have these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label class="control-label">Biometria</label&...
asked by 09.07.2018 / 22:18