Parsing Json Using Get Method With Volley In Android Studio
I got this json array: { 'conferences': [ { 'id': 1, 'name': 'Conferencia Magistral', 'description': 'Conferencia bien chingona lalala', 'speaker': 'Jorge',
Solution 1:
{"conferences":[{"id":1,"name":"Conferencia Magistral","description":"Conferencia bien chingona lalala","speaker":"Jorge","biography":"bioo","place":{"name":"Auditorio","description":"Presentacion de peliculas y documentales"},"date":"31/10/2015","time":"16:00"}]}
Firstly, this is a JSONObject, not a JSONArray. You can go here and here for more information
JSONObject: ...A string beginning with { (left brace) and ending with } (right brace).
JSONArray: ...A string that begins with [ (left bracket) and ends with ] (right bracket).
As a result, you can use a JsonObjectRequest
instead of JsonArrayRequest
Hope this helps!
Post a Comment for "Parsing Json Using Get Method With Volley In Android Studio"