JObjectParse Method (String, JsonLoadSettings) |
Namespace: Newtonsoft.Json.Linq
public static JObject Parse( string json, JsonLoadSettings settings )
Exception | Condition |
---|---|
JsonReaderException | json is not valid JSON. |
string json = @"{ CPU: 'Intel', Drives: [ 'DVD read/writer', '500 gigabyte hard drive' ] }"; JObject o = JObject.Parse(json);