#Web Requests and JSON Objects

1 messages · Page 1 of 1 (latest)

proud bane
#

I'm fresh from pyhton. Useing a request library, I can get json objects (de?)serialized into python objects very simply. I can then access the key value pairs like so:

json_object['key_name'] = key_value

I'm getting a bit confused with this sample code. The data that I display in the gui is already converted to a string. or maybe data was declared as a string. I'm missing the part where my Indicators class comes into play. I see that my class has been (instantiated?) into loadedPlayerData but if I try to print debug one of the values its either null for string types or false for boolenas (as when initialized there was no value so defaults to false I assume.) how do I get these Indicators populated so I can access them like I do in python or where was that happening in my code?