MCPcopy Create free account
hub / github.com/THUDM/GLM / to_json_string

Method to_json_string

tasks/data_utils.py:76–78  ·  view source on GitHub ↗

Serialize this instance to a JSON string.

(self)

Source from the content-addressed store, hash-verified

74 return output
75
76 def to_json_string(self):
77 """Serialize this instance to a JSON string."""
78 return json.dumps(self.to_dict(), indent=2, sort_keys=True) + "\n"
79
80 @staticmethod
81 def load_examples(path: str) -> List['InputExample']:

Callers 1

__repr__Method · 0.95

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected