Use the built-in json.tool instead of a custom script.