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.
Difference between loads and dumps
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