Before I get the checkbox for the duplicate, I have a code from a Dynamic json object with numeric keys , which works pretty well. The question with my number keys is that, unfortunately, the JSON string I get is initially limited by year, so I would use reflection to try to create a dynamic property for a dynamic object, and if so, how? I know with a dynamic object, I cannot have obj ["2010"] or obj [0]. This is not a problem in JavaScript, just an attempt to get it working in C #. Ideas? JSON return example:
{ "2010": [ { "type": "vacation", "alloc": "90.00" },
Alternatively, sometimes the year is the second element as such: I cannot control this json.
{ "year": [], "2010": [ { "type": "vacation", "alloc": "0.00" },
source share