json.loads() and json.dumps()?
Aug 8, 2021
json.loads() takes in a string and returns a json object.
json.dumps() takes in a json object and returns a string.
json.load it to encode it into json while json.dumps decode it into string.
https://www.educative.io/edpresso/what-is-the-difference-between-jsonloads-and-jsondumps