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

Total Post:24

Points:168

WPF 
WPF
 2577  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. 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");

      Modified On Mar-30-2018 05:46:11 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.