In this article, I will explain parsing JSON data in Android.
JSON stands for JavaScript Object Notation. JSON is a light weight data interchange format in a text format so it can be easily parsed and read by machines and humans. Parsing JSON data is important in Android. Create a new project in Android by using the following steps:
Step 3:
Example of collection of name/value pair: The { (curly brace) represents the JSON object.
Example of collection of array: The [ (square bracket ) represents the JSON array.
Complete Java class to parse JSON data.
In above code, we created string containing JSON data and object of class JSONObject.
And pass string containing JSON data to it.
Second step is to parse the JSON.
Pro WPF: Windows Presentation Foundation in .NET 3.0