dump() missing 1 required positional argument: ‘fp’ in python json

Use json.dumps() instead. json.dump() needs a file object and dump JSON to it.

Leave a Comment