I\'m playing a little bit with the new StackOverflow API. Unfortunately, my JSON is a bit weak, so I need some help.
I\'m trying to deserialize this JSON of a User:<
If you don't want to create a wrapper class you can also access the User this way:
String jsonString = "{\"user\":{\"user_id\": 1, \"user_type\": \"moderat...";
JToken root = JObject.Parse(jsonString);
JToken user = root["user"];
User deserializedUser = JsonConvert.DeserializeObject(user.ToString());
See this page in the Json.NET doc for details.