and returns a string containing that object formatted as JSON. loads takes a string of JSON formatted data and returns a python object created with that data.
One is reading a Python object and producing a JSON string, the other is reading a JSON string and producing a Python object.
Jimmy thank you very very much. This was my big question that i thought i’d never understand lol
could I therefore use dumps to inspect the source code of a standard library object like OrderedDict, because I was trying that yesterday
Обсуждают сегодня