Serialize object into JSON

suggest change
using Newtonsoft.Json;

var obj = new Person
{
    Name = "Joe Smith",
    Age = 21
};
var serializedJson = JsonConvert.SerializeObject(obj);

This results in this JSON: {"Name":"Joe Smith","Age":21}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents