Questions tagged as 'json'

1
answer

How to access the structure of this Twitter result?

I have this portion of code: use (Tweepy) firstTweet = api.user_timeline('twitter')[0] print(firstTweet.text) print(firstTweet.id) results = api.retweets(firstTweet.id) print(results) When I get the result I get the following:    [Status...
asked by 02.02.2016 / 14:56
1
answer

Read data from an external JSON API with PHP

I am reading a file json external (Through a URL ) and I can get the values of the first content without problem, but the second content does not, I imagine that the problem is due to the brackets "[ ] "at the beginning and end....
asked by 28.07.2017 / 21:37
3
answers

Passing date and time JSON PHP format to Java

I have this JSON that comes from a PHP : [{"id":101,"date":{"timezone":{"name":"Europe\/Berlin","location": {"country_code":"DE","latitude":52.5,"longitude":13.36666,"comments":"most locations"}},"offset":7200,"timestamp":14712120...
asked by 24.04.2016 / 15:25
2
answers

Structure Json in html

everyone, Thanks for watching my question, I hope you can help me. is the following .. I have the following code. in html <div id="summary"></div> In Js I have function callurl() { $.ajax({ url: 'https://j...
asked by 27.03.2017 / 18:13
3
answers

Items are missing when receiving Array

Everything works correctly for me by only collecting the values of an array, but when I collect the data of the two that is what I want, I am missing data, as I can do it to have them in the same activity: @Override protected String doInBa...
asked by 03.01.2016 / 15:11
2
answers

ERROR: org.json.JSONException: Value ... of type java.lang.String can not be converted to JSONArray

I have this error:    org.json.JSONException: Value i201600010 of type java.lang.String   can not be converted to JSONArray My code is as follows: @Override public void onClick(View view) { Thread thread = new Thread(new Runnable()...
asked by 24.11.2016 / 07:03
2
answers

Generate JSON array object from a list type Object

I am first generating a dynamic object with: dynamic objetoTabla = new ExpandoObject(); , which I add the properties dynamically according to the data I generate with LINQ , until then everything is fine, then that created object I store...
asked by 10.11.2016 / 05:20
2
answers

Problem with JSON file?

I'm following a tutorial on how to create a gallery on android with glide and the information is in a file .json the code looks like this [{ "name": "Deadpool", "url": { "small": "http://api.androidhive.info/images/glide/small/deadpool.jpg...
asked by 01.11.2016 / 22:46
1
answer

Find values from a dictionary in a JSON and add them

I have 2 txt files. 1 is a dictionary with term, value and I have another file with a json that simulates a list of tweets. I have to look up the terms of the dictionary in the json and if it finds the term, add the value to a variable that I...
asked by 23.02.2018 / 13:48
3
answers

What is the correct contentType for JSON?

I see that you can use several but I do not understand their differences or when I should use one or the other, for example: text/javascript text/x-javascript text/x-json application/json application/x-javascript     
asked by 26.01.2016 / 18:04