I notice also you can't for example do a foreach. Is it difficult to add the necessary functions to serve as an array/dictionary?
I'm confused why none of the JSON parsers in C# properly parse JSON strings into a collection ( list / dictionary ) as JSON is a specification for a list and dictionary of primitive types. Your parser here is the only one that seems to do this allowing:
json[0]["children"][0]["title"]
Although you currently are not implementing the collection interface apparently since foreach and setting the ItemsSource don't work. Since I can access the JSON through the array / dictionary [] operators I assume it is possible to implement the proper interface to allow this?
I'm confused why none of the JSON parsers in C# properly parse JSON strings into a collection ( list / dictionary ) as JSON is a specification for a list and dictionary of primitive types. Your parser here is the only one that seems to do this allowing:
json[0]["children"][0]["title"]
Although you currently are not implementing the collection interface apparently since foreach and setting the ItemsSource don't work. Since I can access the JSON through the array / dictionary [] operators I assume it is possible to implement the proper interface to allow this?