In this blog I am going to explain How to parse a json file. Here I am going to explain how to parse a json file stored in Asset folder. Here my file name is user_details.json which stored in asset folder(json_file/user_details.json). Here is my json file.
user_details.json{
"Name": "Shidhin TS",
"UserId" : "1",
"Website" : "http://shidhints.com",
"Company" : "B-Mates Technologies", "Mobile" : "+91XXXXXXXXXX",
"Qualification": [
{
"Name": "Name1",
"Institute": "Institute Name1",
"Year": "2006 - 2009",
"Mark": "87%"
},
{
"Name": "Name2",
"Institute": "Institute Name2",
"Year": "2004 - 2006",
"Mark": "78%"
},
{
"…
user_details.json{
"Name": "Shidhin TS",
"UserId" : "1",
"Website" : "http://shidhints.com",
"Company" : "B-Mates Technologies", "Mobile" : "+91XXXXXXXXXX",
"Qualification": [
{
"Name": "Name1",
"Institute": "Institute Name1",
"Year": "2006 - 2009",
"Mark": "87%"
},
{
"Name": "Name2",
"Institute": "Institute Name2",
"Year": "2004 - 2006",
"Mark": "78%"
},
{
"…