Home > DeveloperSection > Forums > What is the simplest C# function to parse a JSON string into an object?
Garry Winogrand
Garry Winogrand

Total Post:24

Points:168
Posted on    July-31-2013 1:10 AM

 WPF WPF 
Ratings:


 1 Reply(s)
 1515  View(s)
Rate this:
Hi mindstick!

What is the simplest C# function to parse a JSON string into an object?

thanks in advance!



shreesh chandra shukla
shreesh chandra shukla

Total Post:105

Points:735
Posted on    July-31-2013 1:15 AM

Hi!

JObject o = JObject.Parse(@"

{

    ""something"":""value"",

    ""jagged"":

    {

        ""someother"":""value2""

    }

}"); 

string something = (string)o.SelectToken("something");


Don't want to miss updates? Please click the below button!

Follow MindStick