def to_json(data, filename='<STR_LIT>', indent=<NUM_LIT:4>):
with open(filename, '<STR_LIT:w>') as f:<EOL><INDENT>f.write(json.dumps(data, indent=indent))<EOL><DEDENT>
Write an object to a json file

:param data: The object
:param filename: The name of the file
:param indent: The indentation of the file
:return: None