I have a JSON string being returned from a function. I want to write each of the values to variables and do something with them.
This is the format my JSON is in....
I am simply trying to write the attributes to variables...
I was trying something like this but not working
This is the format my JSON is in....
I am simply trying to write the attributes to variables...
I was trying something like this but not working
Querying JSON with LINQ
www.newtonsoft.com
C#:
{
"objectIdFieldName":"OBJECTID",
"globalIdFieldName":"GlobalID",
"geometryType":"esriGeometryPolygon",
"spatialReference":{
"wkid":102100,
"latestWkid":3857
},
"fields":[
{
"name":"OBJECTID",
"alias":"OBJECTID",
"type":"esriFieldTypeOID"
},
{
"name":"ADDRESSgeocode",
"alias":"ADDRESSgeocode",
"type":"esriFieldTypeString",
"length":255
},
{
"name":"DISTANCEparameter",
"alias":"DISTANCEparameter",
"type":"esriFieldTypeString",
"length":5
},
{
"name":"UNIQUEIDparameter",
"alias":"UNIQUEIDparameter",
"type":"esriFieldTypeString",
"length":80
},
{
"name":"COUNTYList",
"alias":"COUNTYList",
"type":"esriFieldTypeString",
"length":550
},
{
"name":"NWTLID",
"alias":"NWTLID",
"type":"esriFieldTypeGUID",
"length":38
},
{
"name":"GlobalID",
"alias":"GlobalID",
"type":"esriFieldTypeGlobalID",
"length":38
}
],
"features":[
{
"attributes":{
"OBJECTID":42229,
"ADDRESSgeocode":"816 W Main St, Danville, Virginia(VA), 24541",
"DISTANCEparameter":"12",
"UNIQUEIDparameter":"{BA814524-95FC-443C-9813-B4FE42099999}",
"COUNTYList":"83,143,590",
"NWTLID":"{BA814524-95FC-443C-9813-B4FE42099999}",
"GlobalID":"{48E1D562-A06C-48B2-8588-91CCE9D3EF1F}"
}
}
]
}
Last edited by a moderator: