Serialization and deserialization in python is done following these rules: python - json:
dict - object list - array tuple - array str - string int - number float - number True - true False - false None - null
You should not expect any other values, most of the time you should know if the json data is a dictionary, a list of dictionary or whatever.
If your problem is typing you could verify that loading your data returns a dictionary or a list and returning that add dict or list as typing