Click here to Skip to main content
15,888,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi can anyone help me in desirilizing the below given json


{
"Inspir": [
{
"Id": 1,
"Quote": "We are what we think. All that we are arises with our thoughts. With our thoughts, we make the world.",
"Speaker": "ABC"
},
{
"Id": 2,
"Quote": "When you realize how perfect everything is, you will tilt your head back and laugh at the sky.",
"Speaker": "XYZ"
},
{
"Id": 3,
"Quote": "There's only one corner of the universe you can be certain of improving, and that's your own self.",
"Speaker": "PQR"
},

]
}
Posted

which language are you using? For Javascript, you can use
JSON.parse( json_string );
 
Share this answer
 
Comments
yesh88 31-Dec-12 4:02am    
i am using asp.net do you have any idea for that
Please check the below link.I think it will help you.

http://stackoverflow.com/questions/7203770/how-to-deserialize-json-in-asp-net[^]

Thanks,
Bilaal
 
Share this answer
 
copy your json to json2csharp.com, it generate class for your app and then you use this class in your app.
to deserialize use namespace newtonsoft.json

store your deserialize json in var like

var object = jsonconvert..DeserializeObject<your class="">(event which you are using)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900