C# snippet : JSONify object
One of my most favorite C# snippet is following oneliner useful when quick debugging or checking on something is needed.
1 |
Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar")) |
Which returns String containing JSON representation of arbitrary C#… Read more »