I have a dynamic object that looks like this,
{ \"2\" : \"foo\", \"5\" : \"bar\", \"8\" : \"foobar\" }
How can I convert this
You can use Json.Net to deserialize it to dictionary.
string json = dynamicObject.ToString(); // suppose `dynamicObject` is your input Dictionary dictionary = JsonConvert.DeserializeObject>(json);