dump vs load, dump vs dumps

https://stackoverflow.com/questions/39719689/what-is-the-difference-between-json-load-and-json-loads-functions https://stackoverflow.com/questions/32911336/what-is-the-difference-between-json-dumps-and-json-load

https://kibua20.tistory.com/197

json \n → \\n 이유

dumps takes an object and produces a string:

>>> a = {'foo': 3}
>>> json.dumps(a)
'{"foo": 3}'

load would take a file-like object, read the data from that object, and use that string to create an object:

with open('file.json') as fh:
    a = json.load(fh)