I've got a log file as JSON that includes unsupported types, even though the intention was apparently to have something human editable and I wish this log file was never produced, what would be the appropriate way?
The Log file has entry's as following, basicly non string,dict,tuple,..:
{"a":float(9)}
the only way I've found is using the eval
which does the job but there must be a better way? Ast.literal_eval
won't work as it will fail with "malformed string"