so I've got a list of data each element is in this format
{
"Account_Level": 143,
"ActiveId1": 8844,
"ActiveId2": 8879,
"ActiveId3": 0,
"ActiveId4": 0,
"Assists": 14,
"ret_msg": null
}
this data is pulled from an API wrapper so the type is pyrez.models.Match.Match
so when trying to use json.dump
to save the list containing this type of data I get
TypeError: Object of type Match is not JSON serializable
EDIT: Fixed using by changing each element individually [i.json for i in session]