79172920

Date: 2024-11-09 14:00:14
Score: 1.5
Natty:
Report link

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

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andrea Parodi