How to parsing the JSON in JAVA . Share the JSON formate below.
{ "contacts": [
{
"id": "c200",
"name": "Ravi Tamada",
"email": "ravi@gmail.com",
"address": "xx-xx-xxxx,x - street, x - country",
"gender" : "male",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000",
"contacts":[ {
"id": "c2011",
"name": "Rakesh",
"email":"rakesh@gmail.com",
"address":"frtre,sedw,dsfdr",
"gender" :"female",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
}
} ]
}
},
{
"id": "c201",
"name": "Johnny Depp",
"email": "johnny_depp@gmail.com",
"address": "xx-xx-xxxx,x - street, x - country",
"gender" : "male",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
}
}
...
]
}
I try to solve this problem since last two day's but it's cant be parsing in java . Also follow the some tutorial but same problem.
So please help me out.
Thanks in advance !
Please help me .
Thank you!