I have the below posted json contents. I would like to fetch the data with volley.
my question is, should i treat it as JSONObject or JSONArray? i am asking this question because as shown below in the json data below it starts with [
and ends with ]
code:
this.mJSONObjectRequest = new JsonObjectRequest(Request.Method.GET, this.BASE_URL, null, new Response.Listener<JSONObject>() {
json
[
{
"trends": [
{
"name": "#ChainedToTheRhythm",
"url": "http://twitter.com/search?q=%23ChainedToTheRhythm",
"promoted_content": null,
"query": "%23ChainedToTheRhythm",
"tweet_volume": 48857
},
{
},
{
},
..
..
]
}
]