If you want to add indentation to your JSON file to improve readability, add indent
parameter to json.dumps
method.
The code above shows the output of json.dumps
method after adding indent=4
.
If you want to add indentation to your JSON file to improve readability, add indent
parameter to json.dumps
method.
The code above shows the output of json.dumps
method after adding indent=4
.