Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Newtonsoft.Json.Linq;
- public class Program
- {
- public static void Main()
- {
- string jobjstr = "{prop1: 'hello', somestrings: ['x', 'y']}";
- var jobj = JObject.Parse(jobjstr);
- Console.WriteLine(jobjstr);
- Console.WriteLine();
- Console.WriteLine(jobj.ToString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement