Questions tagged as 'json'

2
answers

How to fetch a json value from the goo.gl API for C #

I'm trying to use the goo.gl API to shorten some link. The problem is that I do not know how to pull the generated URL from the json return. See below how it is organized: { "kind": "urlshortener#url", "id": "AQUI VEM A URL DO GOOGLE", "lon...
asked by 23.02.2017 / 14:00
1
answer

JSON Parse error:

I have this error in JSON that I can not understand. This is my return on console:    SyntaxError: JSON Parse error: Unrecognized token '
asked by 06.12.2016 / 13:39
1
answer

How to change the value of an object in .json in python

How do I change the value of an object in .json in python (without rewriting it all)? Ex: { "Nome": "Henrique Antônio de Oliveira" "Cidade": "São Paulo" "Estado": "São Paulo" "Idade": "23" "Número do Pedido:": "457835" }...
asked by 19.11.2016 / 20:24
2
answers

JS looking for PHP JSON return

I'm starting to use JSON and AJAX and am having a hard time fetching the generated JSON in php for JS. This all in Intel XDK. In php it looks like this: if ($_GET['acao'] == 'buscaorcP'){ $qryOP = mysql_query("select * from orcamento_ca...
asked by 17.11.2016 / 22:44
1
answer

$ .getJSON not working as it should to get image graph API

I have this following code where I return comments for a post on facebook. function pegaFoto(id){ var url2 = 'https://graph.facebook.com/v2.8/' + from[id] + '/picture?fields=url'; $.getJSON(url2, function(res2){ for (var key2 in re...
asked by 16.11.2016 / 18:06
1
answer

JSON parsing with android volley

I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492", "ask":"3.2497"}] I want to use the value of "ask" but I...
asked by 02.01.2017 / 02:48
1
answer

Extract JSON data within JSON that comes from a Web Service serving an Android APP

Good evening, how are you? I'm developing an Android APP and it consumes data from a webservice, however I'm having trouble getting some information into the APP. This is the JSON that I return to my APP: { "cod":1 ,"dados":...
asked by 18.01.2017 / 06:39
1
answer

Gson: JsonObject conversion error for JsonArray (JsonPrivate can not be cast to com.google.gson.JsonArray)

I'm trying to convert a JSONObject item to an ArrayList and for this I created this function from an example I saw here in the forum: public static ArrayList<Produto> converte(JSONObject jsonObject){ ArrayList<ArrayList>...
asked by 05.11.2016 / 16:43
2
answers

How to enter polylines in Google maps api v3 with dates saved in the database

I'm trying to show in google maps api v3 polylines that are stored in my database Here is the connection to the conf.inc.php database: <?php define('HOST','localhost'); define('USER','xxxx'); define('PASS','xxxxx'); define('DBSA','polili...
asked by 11.10.2016 / 17:22
1
answer

Enter data in the Mysql database received from a Json

I have the following problem, I have an app and by it send some data in the format Json, for the server, up to that blz, arrives in this good format: {"credenciador":"","evento":"16","inscrito":[{"id_inscrito":"13","data_credenciado":"2016-0...
asked by 26.09.2016 / 20:53