Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ to_json_string
Method
to_json_string
model/modeling_bert.py:260–262 ·
view source on GitHub ↗
Serializes this instance to a JSON string.
(self)
Source
from the content-addressed store, hash-verified
258
return
output
259
260
def
to_json_string(self):
261
""
"Serializes this instance to a JSON string."
""
262
return
json.dumps(self.to_dict(), indent=2, sort_keys=True) +
"\n"
263
264
265
try
:
Callers
1
__repr__
Method · 0.95
Calls
1
to_dict
Method · 0.95
Tested by
no test coverage detected