I have this string:
[{ \"processLevel\" : \"1\" , \"segments\" : [{ \"min\" : \"0\", \"max\" : \"600\" }] }]
I\'m deserializing the object:
I like this method:
using Newtonsoft.Json.Linq;
//jsonString is your JSON-formatted string
JObject jsonObj = JObject.Parse(jsonString);
Dictionary dictObj = jsonObj.ToObject>();
You can now access anything you want using the dictObj
as a dictionary. You can also use Dictionary
if you prefer to get the values as strings.