private void CreateFeatureSetJson()
{
string jsonInput = @"{
""displayFieldName"" : ""AREANAME"",
""geometryType"" : ""esriGeometryPoint"",
""spatialReference"" : {""wkid"" : 4326},
""fieldAliases"" : {
""ST"" : ""State Name"",
""POP2000"" : ""Population"",
""AREANAME"" : ""City Name""
},
""features"" : [
{
""attributes"" : {
""ST"" : ""CA"",
""POP2000"" : 3694820,
""AREANAME"" : ""Los Angeles""
},
""geometry"" : { ""x"" : -118.4, ""y"" : 34.1 }
},
{
""attributes"" : {
""ST"" : ""WA"",
""POP2000"" : 563374,
""AREANAME"" : ""Seattle""
},
""geometry"" : { ""x"" : -122.3, ""y"" : 47.5 }
}
]
}";
// string.Replace necessary here to handle double-quotes escaped for the '@' string literal
JsonTextBox.Text = jsonInput;
}