Questions tagged as 'json'

0
answers

Help with post request in java

Hello. I'm trying to call a php webservice via post using java. the code and the following: public void post(String json) { try { CloseableHttpClient client = HttpClients.createDefault(); HttpPost httpPost =...
asked by 17.04.2018 / 19:16
0
answers

how do I read various news, only the last one appearing

//CONEXAO COM O SEVIDOR DO SINDITAC E PEGAR O JSON COM AS NOTICIAS $.getJSON("http://sinditac.siteseguro.ws/api/news.php?t=d18d31bd9b9f5f7b338e41b5986183a2f3008b541d7c84e442", function(data){ // LER O JSON E INCLUIR NAS VARIAVEIS for (i...
asked by 16.04.2018 / 14:43
1
answer

Display categories of each post via JSON JS

I'm using blogger, and I need to "generate" the categories for each post. function posts(json) { for (var i = 0; i < 11; i++) { var post = json.feed.entry[i]; var postLabels = []; } for (var b = 0; b < post.category.length;...
asked by 16.04.2018 / 22:42
1
answer

Problems adding JsonObject to JsonArray

import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonValue; ... JsonObject object = Json.createObjectBuilder().build(); JsonArray array = Json.createArrayBuilder().build(); JsonA...
asked by 16.04.2018 / 17:31
1
answer

Error in WEB API with flask

I started my WEB API study trying to create a Pokedex API, when I tried to create the pokemon search function by the number the following error appeared: "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" appPokedex:...
asked by 12.04.2018 / 19:38
1
answer

And in what context can the use of JSON be advantageous in relation to the use of XML (in web applications)? [duplicate]

I have this question in a test simulation. Aside from Json's ease of writing, and being well object oriented, what could be the advantages? The topic: Why and when using XML instead of JSON? It did not help because I need more information...
asked by 21.04.2018 / 16:11
1
answer

Error 403 in request via $ .ajax to instagram

Does anyone know why this ajax request from error 403 and the URL works normally? The instagram has changed their api and I found this code that serves as a pagination in the media, when I make the request via ajax it of error (403 - forbidde...
asked by 11.04.2018 / 18:54
0
answers

How to structure data for JSON with PHP

I have the return of a query that brings me the following items from the following query (NOTE: they are tables created for examples) select * from alunos a left join financs f on f.aluno_id = a.id left join financ_detalhes fd on fd.financ_id...
asked by 10.04.2018 / 19:24
0
answers

Adding more than one option to the product by api shopify

I'm doing integration with Shopify, but I can not by any way find myself adding more than one 'option' to the product using the API. The shopify documentation is very bad! Unsuccessful example: "options" => array( array( "name...
asked by 13.04.2018 / 22:59
0
answers

Store return JSON mORMot server with Javascript authentication

Speak up! I would like to know how I can store the return of authentication via javascript on a server with mORMot. I need to store the authorization key to send along with the requisitions. Follow the javascript code that I use to authent...
asked by 13.04.2018 / 20:50