add function to indent json into a readable form