Click here to Skip to main content
12,452,066 members (64,832 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows Phone
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 30-Dec-12 20:36pm
yesh88358
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

which language are you using? For Javascript, you can use
JSON.parse( json_string );
  Permalink  
Comments
yesh88 31-Dec-12 4:02am
   
i am using asp.net do you have any idea for that
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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(event which you are using)
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 20 Feb 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100