Questions tagged as 'json'

2
answers

How to transform an array of json objects into a List of objects in C # using Json.NET

I'm starting to learn C # and am getting to do this task, grabbing an array of objects from a json and transform the elements of that array into objects of a specific type and put them in a list. Create a method that does this and returns a List...
asked by 07.11.2017 / 19:58
1
answer

Error when deserializing a Json that I receive from the server

   Can not deserialize the current JSON array (eg [1,2,3]) into type 'Gnaritas.Colour.Models.ColumnForm' because the type requires a JSON object (eg {"name": "value"}) to deserialize correctly.       To fix this error, either change the...
asked by 08.11.2017 / 22:12
1
answer

How to remove null, false, and true Json file values?

I have a JSON file with this data: { "in_reply_to_screen_name": null, "favorited": false, "id_str": "92", "entities": { "user_mentions": [], "symbols": [], "urls": [], "hashtags": [ {...
asked by 31.10.2017 / 19:50
2
answers

How to set up dynamic menu?

How to mount this menu dynamically using json? Let him be assembled according to the order that came. It's possible?     
asked by 30.10.2017 / 16:06
1
answer

mount HTML element with vanilla JS, I can not list all elements of JSON

Where is the error in my code? I am not able to list all the names in a <li> different, in my console.log(items[i].name) all the names of the JSON appear, however at the time of creating the html element it only takes the...
asked by 04.10.2017 / 18:33
1
answer

Display JSON data in ListView

How do I load a ListView with the result of a method that returns an object already loaded with JSON? Method that loads object with JSON namespace MeuProjeto.ViewModels.jsonModels { class JSON { /*async void getJSON<T>...
asked by 28.10.2017 / 19:48
2
answers

How to convert json to object and put in a system.out.println?

I have the following code that returns a JSON: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import classes_json.JSONObject; class Connection...
asked by 26.08.2017 / 16:55
1
answer

Get JSON value returned from Laravel

I have the following JSON returned from a controller Laravel : { "id": 105, "tratamento_id": "24", "eim": null, "oft": "12", "codigo_produto": "CO009-1200-1200", "descricao_produto": "COMPENSADO 9X1200X1200 ", "t...
asked by 29.08.2017 / 22:28
1
answer

How to read and interpret a JSON file with PHP?

I am developing an application in PHP, in which I am reading a JSON file (containing several electronic invoices) and need to save some tags contained in this JSON file in variables. I started studying PHP a short time ago, I am currently abl...
asked by 08.09.2017 / 01:03
1
answer

PHP and json how to print?

Could anyone help me print out each of these elements of this Json using php.    {"data": {"charges": [{"code": 30013193, "dueDate": "05/09/2017", "checkoutUrl": " link ", "link": "#
asked by 03.09.2017 / 04:25