This is not possible for a " call 10000 on daily object " just because 10000 NOT a valid identifier .
Let me explain what happens here:
JSON parser generates some type of runtime inherited from some basic JSON type (e.g. JsonObject ). So obj is some kind of generated type, you call the item property on it, it returns the same generated type, then you call the today property, etc.
The last step is strange, there cannot be a 10000 property for any type generated or not.
But, if the library supports access to objects with a key, you can try to write
obj.daily["10000"]
or apply obj to a JObject (suppose you are using JSON.NET) and call the Property :
var jsonObject = (JObject) obj; var propertyValue = jsonObject.Property("10000").Value;
source share