PIE
Attempting to get value from different JSON files with variable key
I'm not sure what you mean by normal models, is it the same as the classes that I used above?
Also there is an identifier from the JSON file that all have the same key that denotes the type of the JSON (all the JSON files with a "tumber" identifier will have the same keys). I could use it with a switch statement in order to parse preset keys in order to get the correct values as you said but I'm wondering if there is a better way...
8 replies