Difference between JSON object and JSON array
When you are working with JSON data in Android, you would use JSONArray to parse JSON which starts with the array brackets. Arrays in JSON are used to organize a collection of related items (Which could be JSON objects). For example: [{“name”:”item 1″},{“name”: “item2”} ] On the other hand, you would use JSONObject when dealing … Read more