Questions tagged as 'json'

1
answer

Json.parse does not convert to array

Hello, I am a full-fledged amateur in php and javascript and after a month of fighting with two languages that I had never stirred I got here. I'm trying to pass a JSON from a request back to array in my javascript, but when I use parse and p...
asked by 26.04.2017 / 14:21
1
answer

Load Json Search in JSP

Good Morning I'm trying to make this example in my project. It is a simple change of Select when you choose State Changes the Cities in another Select. link But I can not get the variable, estados_cidades.json . I tried to scrip...
asked by 19.05.2017 / 16:26
1
answer

How do I get the list of shares from a Facebook post?

I'm trying to get the list of shares from a publication but it looks like something is wrong; When I use 1365084196885691/sharedposts in the Facebook API I get the following JSON : { "data": [ { "story": "Leo Letto...
asked by 23.03.2017 / 13:29
1
answer

How to get data from this Json?

I need to get the name, a distance, photo and id, which are within "date" and also need to get the route_id that is inside "ride". This will be populated in a listview that contains these first data. When you click on btn_go, this data will be s...
asked by 23.03.2017 / 14:49
1
answer

Error receiving JSON from variable

That way I can retrieve the values: var unidades: "101|102|103|104"; function getValue(key, array) { for (var el in array) { if (array[el].hasOwnProperty(key)) { return array[el][key]; } }...
asked by 24.03.2017 / 17:13
1
answer

Json reading with PHP

Well, I'm having a question about reading Json with PHP. Json is this: {"message":"Oi Gente","report":[{"0":[{"port":"gsm-2.3","phonenumber":"00000000000","time":"1970-01-08 10:00:26","result":"fail"}]}]}, but I can not display your val...
asked by 09.03.2017 / 20:49
2
answers

Problem when mounting JSON with database return

It all comes down to this image:
asked by 15.04.2017 / 18:11
1
answer

Modal with json object

I need to get an image by json to appear in my modal but the modal appears but the image does not Here is my code $("#estoque1").click(function(){ $('#estoqueModal').modal('show'); $(".modal-body").innerHTML += '<img src="...
asked by 16.04.2017 / 03:32
1
answer

How to write to an .json file

I have some files .json in assets . I'mcurrentlyjustreadingthesefiles.ReadingpublicStringloadJSONFromAsset(StringAjson){Stringjson=null;try{InputStreamis=context.getAssets().open(Ajson);intsize=is.available();byte[]buffer=newbyt...
asked by 19.02.2017 / 06:26
1
answer

Which format is most appropriate for the LocalDate field in JSON?

I have seen date fields returned in the following ways: "2012-04-23" //Padrão ISO 8601 "23/04/2012" //Pronto para renderização no front-end Considering the use and flexibility of the front-end, such as performing a search on a grid with...
asked by 09.02.2017 / 18:46