[Solved] Serializing in Json.net [closed]


There is no question here but I am assuming you want to serialize that json string into an object? Also I would at least post what you have tried and what errors you are receiving if any. This is per the JSON.net web site found here http://james.newtonking.com/pages/json-net.aspx

string json = "<you json string>";

JObject o = JObject.Parse(json);
// here is how you would access it
string jsonrpc = (string)o["jsonrpc"];
// access array of you object
JArray sizes = (JArray)o["<arrayName>"];
string arrayEntry = (string)sizes[0];

2

solved Serializing in Json.net [closed]