JSON data is formatted in format_json.py without any indentation, making it difficult to read. It is still possible to write this data to a .json file with indentations, however, it would be preferable to return an correctly indented JSON string.
Proposed resolution
Add the indent parameter to the json.dumps method in format_json.py.
Issue
JSON
data is formatted informat_json.py
without any indentation, making it difficult to read. It is still possible to write this data to a.json
file with indentations, however, it would be preferable to return an correctly indentedJSON
string.Proposed resolution
Add the
indent
parameter to thejson.dumps
method informat_json.py
.