On 14Sep2019 02:18, Hongyi Zhao <[email protected]> wrote:
I'm very confusing on the the differences between json.dumps and
json.loads.  Any hints?

The direction.

json.dumps takes an object and transcribes it as a string. "Dump to string."

json.loads takes a string and decodes it as JSON and returns an object. "Load from string".

Cheers,
Cameron Simpson <[email protected]> (formerly [email protected])
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to