How to fix Invalid JSON [type=json_invalid] in Python | DevErrors