I have a complex (nested) json text file that is one long line in the text file
Is there any way to read in the file (in python) and indent / pretty-print the json to a
Read the file using json.load(..), and use json.dump(..) to write the object out to another file while specifying indent value.
json.load(..)
json.dump(..)
with open("inFile") as f, open("outFile", "w") as g: json.dump(json.load(f), g, indent=4)