WHAT IS THE SIMPLEST C# FUNCTION TO PARSE A JSON STRING INTO AN OBJECT?

Garry Winogrand

Total Post:24

Points:168
Posted by  Garry Winogrand
WPF 
WPF
 1967  View(s)
Ratings:
Rate this:
Hi mindstick!

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

thanks in advance!

  1. shreesh chandra shukla

    Post:105

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

    Hi!

    JObject o = JObject.Parse(@"

    {

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

        ""jagged"":

        {

            ""someother"":""value2""

        }

    }"); 

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!