Click here to Skip to main content
11,576,635 members (60,243 online)
Rate this: bad
good
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
yesh88395
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 at 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
0 Sergey Alexandrovich Kryukov 251
1 Abhinav S 170
2 Lucifier Rocks 105
3 DamithSL 95
4 Dave Kreskowiak 80
0 OriginalGriff 705
1 Sergey Alexandrovich Kryukov 626
2 Abhinav S 483
3 F-ES Sitecore 410
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 20 Feb 2014
Copyright © CodeProject, 1999-2015
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