I am trying to develop a metro-style app using C# and XAML. In that app, I am getting some data in JSON-formatted string from a service. A sample is shown below:
[{
"displayFieldName" : "OBJECT_NAME",
"fieldAliases" : {
"OBJECT_NAME" : "OBJECT_NAME",
"OBJECT_TYPE" : "OBJECT_TYPE"
},
"positionType" : "point",
"reference" : {
"id" : 1111
},
"objects" : [ {
"attributes" : {
"OBJECT_NAME" : "test name",
"OBJECT_TYPE" : "test type"
},
"position" : {
"x" : 5,
"y" : 7
}
} ]
}]
Actually I am getting the data as a single line, a very long line. Anyway, I want to process it in C# as a JSON-object. How can I do that, convert that string to a C# object?