There is an alternate way to write these complex JSON using Expando object or XElement and then serialize.
dynamic contact = new ExpandoObject();
{
contact. Name = “Patrick"Patrick Hines”;
Hines",
contact. Phone = “206"206-555-0144”;
0144",
contact. Address = new ExpandoObject();
{
contact.Address. Street = “123"123 Main St”;
St",
contact.Address. City = “Mercer"Mercer Island”;
Island",
contact.Address. State = “WA”;
"WA",
contact.Address. Postal = “68402”;"68402"
}
};
//Serialize to get Json string using NewtonSoft.JSON
string Json = JsonConvert.SerializeObject(contact);