I’m testing my scripts with python3 for the first time and one issue I have encountered is that previously I could make a query asking for all the contents of all fields in the schema of a particular entity and I would receive them in a dict.
Now I get an error saying “TypeError: Object of type dict_keys is not JSON serializable”
Usually I would do a query to get a list of the schema for the entity and then pass that list in the fields parameter when I’m doing a find.
For example…
fields=sg.schema_field_read(entity).keys()
results=sg.find(entity,filters=[(‘project.Project.id’, ‘is’, project_id)],fields=fields)