I\'ve used the following C# code to convert a string of JSON data to a dynamic object using the JSON.Net framework:
// Creates a dynamic .Net object represen
XDocument doc = XDocument.Parse(xmlData); //or XDocument.Load(path) string jsonText = JsonConvert.SerializeXNode(doc); dynamic dyn = JsonConvert.DeserializeObject(jsonText);
I think "cheating" is the answer - the xml solutions are very long :)