I need to deserialize a string
like this
{ "example": { "id": "12345", "name": "blabla" } }
into a KeyValuePair<string, string>
or something similiar.
I tried:
var pair = JsonConvert.DeserializeObject<KeyValuePair<string, string>>(d["example"].ToString());
(d["example"]
returns the json string like shown above)
The result was an empty KeyValuePair<string, string>
.
Is there any way to solve this?