MCPcopy Create free account
hub / github.com/defold/defold / to_json

Function to_json

engine/docs/script_doc.py:690–694  ·  view source on GitHub ↗
(s, output_file)

Source from the content-addressed store, hash-verified

688 f.write(str(msg))
689
690def to_json(s, output_file):
691 msg = parse_document(s, output_file)
692 dct = message_to_json_dict(msg)
693 with open(output_file, "w") as f:
694 json.dump(dct, f, indent = 2)
695
696def to_script_api(s, output_file):
697 msg = parse_document(s, output_file)

Callers 1

script_doc.pyFile · 0.85

Calls 3

parse_documentFunction · 0.85
message_to_json_dictFunction · 0.85
dumpMethod · 0.80

Tested by

no test coverage detected