Difference between loads and dumps

Are both json.loads and json.dumps doing the same thing that is converting the contents of the json file into string format and storing it in the object.

Hi @Anuvrat99

json.loads -> returns an object from a string representing a json object.

json.dumps -> returns a string representing a json object from an object.


json.dumps() and json.loads() are opposite of one another.

Hope this might helps :slightly_smiling_face: