MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / encode

Method encode

apps/common/encoder/encoder.py:18–23  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

16
17class SystemEncoder(json.JSONEncoder):
18 def encode(self, obj):
19 # 先序列化为字符串
20 json_str = super().encode(obj)
21 # 移除所有空字符
22 json_str = json_str.replace('\\u0000', '')
23 return json_str
24
25 def default(self, obj):
26 if isinstance(obj, uuid.UUID):

Callers 15

secure_dumpsFunction · 0.45
secure_loadsFunction · 0.45
write_thread_task_logMethod · 0.45
custom_get_token_idsFunction · 0.45
get_num_tokensMethod · 0.45
custom_get_token_idsFunction · 0.45
get_num_tokensMethod · 0.45
custom_get_token_idsFunction · 0.45
custom_get_token_idsFunction · 0.45
custom_get_token_idsFunction · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected