Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. using System;
  2. using Newtonsoft.Json.Linq;
  3.  
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. string jobjstr = "{prop1: 'hello', somestrings: ['x', 'y']}";
  9. var jobj = JObject.Parse(jobjstr);
  10.  
  11. Console.WriteLine(jobjstr);
  12. Console.WriteLine();
  13. Console.WriteLine(jobj.ToString());
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement