I'm trying to parse a source that already exists, and have been using json2csharp.com to generate the classes.
I'm using Newtonsoft to do it.
Some of my data is being converted into classes, when it is closer to a Dictionary.
For example: {
"items":{ "1061":{ "count":"1", "in_use":"0" }, "1065":{ "count":"1", "in_use":"0" } } }
I'd like to have a Class Item with string count, and string in_use and possibly a dictionary under root such that Dictionary items or just a list of items, and put the ID in the object itself.
If most of my object is parsed properly, how do I manually build this part? Do I iterate through the items by pulling down the object as dynamic, and load it manually? What's the best way to do this?
Thanks for the help!