import json print(json.load('{"key": "value"}')) print(json.dump({'test key': nil})) print(json.dump({'key1': nil, 45: true}, 'format'))