the difference is that json dump/load is a certain type? of reading and writing
Not really? dumps takes a python object as an argument 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.
This Stackoverflow answer (which was shared earlier) spells it out very plainly. https://stackoverflow.com/a/32911421/370539
Обсуждают сегодня