Questions tagged as 'json'

1
answer

C # - Decode array JSON

I need to get the id of this code JSON using C# :    [{"nome":"Gabriel Ferreira","cidade":"São Paulo","uf":"SP","id":"4274892"}] Someone can advise me how I can do this in the best way, since I already tried wit...
asked by 06.05.2018 / 05:22
1
answer

Reading JSon PHP

I'm starting to develop in PHP , and I'm having a hard time reading the return of a Json ; This section, I was able to read: "cost_per_action_type": [ { "action_type": "comment", "value": "261.1" }, { "action_type": "like", "val...
asked by 18.05.2018 / 14:31
1
answer

Success message when registering in DB

The script below worked with the older version of js and Bootstrap, but after I started using the latest one it stopped ... I use it to return the form message! If someone can help me, I understand little of json and js ... // Quando carregado...
asked by 04.05.2018 / 14:42
1
answer

Objects with javascript

How do I access the data from this Json file. For example return the name: { "potions": { "1": { "id": 1, "name": "Aging Potion", "image": "aging-potion.png", "price": 29.99, "effect": "Causes the drinker to...
asked by 10.04.2018 / 23:13
1
answer

Creating JSON file with PHP

I'm bringing DB data that will be used as Values of Keys of my new file.json that I'm trying to create. The Keys is being read from an existing JSON file. So, basically what I need to do is an existing file, but wi...
asked by 06.04.2018 / 22:35
1
answer

How to use ORDER BY of a data that does not come from the Bank?

How to use ORDER BY of a data that does not come from db? ex: $query = $mysql->query("SELECT * FROM db_aux ;"); while($row = $query->fetch_array()) { $url = "https://maps.googleapis.com/maps/api/distancematrix/json?origins="; $ur...
asked by 20.04.2018 / 15:49
1
answer

Invalid argument supplied for foreach () - Array

Good morning. I'm trying to consume a json in PHP but I'm having this problem:    Warning: Invalid argument supplied for foreach () in   D: \ xampp \ htdocs \ api \ consume \ index.php on line 7 Array code - JSON link PHP code...
asked by 24.04.2018 / 13:33
1
answer

How to convert a Json file to a list of objects in Java?

I'm trying to read the data from a .json file and store it in a% of objects%, however an error is occurring that I do not know what it means. Class Sale - To store the data that will be brought from the file public class Sale { private int...
asked by 18.03.2018 / 21:28
1
answer

Getting JSON user data by jquery

I have a json that I'm running through json-server and it's at: link Within it, it has a scope of "users", which I would like to take. I have the following script I put together, it follows: $.getJSON(urlParam, function (data) {...
asked by 11.05.2018 / 19:38
1
answer

How to convert a JSONArray to an array of strings?

String mensao = "[\"brega_falcao\",\"SamiPietikainen\",\"TecRahul\",\"gpantuza\",\"mkyong\",\"mkyong\",\"YouTube\"]"; Mensao is the JSONArray that I want to convert. I tried this but it did not work: //Retiro o '[' do inicio e do fim ']'...
asked by 17.04.2018 / 17:40