Questions tagged as 'json'

2
answers

Receiving POST from a Json in PHP

I'm trying to get a Json via POST and display it on the screen, Json is sent via an API that I do not have access to the script it sends, I'm trying to print everything I receive on the screen and then proceed, I know it is sent via POST and Con...
asked by 25.05.2018 / 16:46
1
answer

Is there a standard for naming the keys of a JSON?

I'm consuming a JSON, and I want to use the keys of this JSON as a select's options, however the nomenclature is in camelCase and no accents, eg "destaques": [ { "fornecedoresCompany": [ { "5OouMaisFunci...
asked by 12.07.2018 / 20:57
1
answer

Difficulties in receiving JSON data in PHP

Good evening everyone, I'm having a serious question about receiving JSON data via an external link. I have a link that pulls all the information I need to show, but there is my question, I'm using a form to show the data according to the...
asked by 12.07.2018 / 01:42
1
answer

Specific section break in JSON file with python

Is it possible to perform a line break from a specific JSon thread, transform into an array, and then dynamize? Why I'm asking this .. I'm developing a file mining bot and I came across a situation where some pages return only one file on that l...
asked by 29.05.2018 / 14:01
1
answer

How to transform a JSON into a paged table / list using .Net Core MVC?

I'm studying API access and I'm using the Github API. I want to make a screen in which it is possible to search by name the repositories that beat with the last criterion. But the results of Github are huge, how can I do to page this list? No...
asked by 14.06.2018 / 07:56
1
answer

Json Merge with Array in Javascript

I would like to know how to handle a json in javascript like: var arrDados = {"mes":["12","5","1"], "mes":["2","8","3"]}; var meses = {1:'Jan', 12:'Dez', 6:'Junho', 5:'Abril', 3:'Março', 8:'Agosto', 2:'Fevereiro'} The idea is that according...
asked by 14.06.2018 / 21:55
2
answers

Java - Get the value of a specific element from a JSON

I'm using the exchangerate API ( link ) to get the day's currency quotes. Using the code below I get a JsonObject containing the "rates": private JsonObject getExchangesRate() throws JsonIOException, JsonSyntaxException, IOException {...
asked by 21.06.2018 / 16:55
1
answer

Separate respective item from a JSON array

Alright? I would like to know how to add the respective value in "href" in this foreach: <?php $getJson = file_get_contents('file.json'); $listMenuJson = json_decode($getJson, true); foreach ($listMenuJson as $valor) { $a_tag = implode('&...
asked by 13.05.2018 / 02:37
2
answers

print specific data from a json in php

I'm trying to make an application to get cnpj data in the federal revenue api. I can get and print all data via json, my problem is that I would like to print just a specific data, which in the case would be the email field, how can I do that?...
asked by 09.05.2018 / 00:25
1
answer

Convert Gson to ListObject

I'm starting to learn how to use the Gson library in my code and need to create a list of objects from a Json file. Json: [{"id":1,"cat":"teste","icone":"icone"},{"id":2,"cat":"teste2","icone":"icone2"}] of this file two Objects (CategoryIt...
asked by 09.05.2018 / 18:41