I have a json string which contains an array of dictionaries for a TreeView. However the following won't compile as IJSonObject can't be converted to System.Collections.IEnumerable. Can IJSonObject be modified to support this case?
s = @"[{""title"":""Title1"",""children"":[{""title"":""Child1"",""children"":[{""title"":""grandchild1"",""children"":[{""title"":""Huh""}]}] }] }]";
JSonReader jr = new JSonReader();
IJSonObject json = jr.ReadAsJSonObject(str);
mTreeView.ItemsSource = json;
s = @"[{""title"":""Title1"",""children"":[{""title"":""Child1"",""children"":[{""title"":""grandchild1"",""children"":[{""title"":""Huh""}]}] }] }]";
JSonReader jr = new JSonReader();
IJSonObject json = jr.ReadAsJSonObject(str);
mTreeView.ItemsSource = json;