MCPcopy
hub / github.com/tinode/chat / to_json

Function to_json

chatbot/python/chatbot.py:74–75  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

72 return obj
73
74def to_json(msg):
75 return json.dumps(clip_long_string(MessageToDict(msg)))
76
77# Resolve or reject the future
78def exec_future(tid, code, text, params):

Callers 2

client_generateFunction · 0.70
client_message_loopFunction · 0.70

Calls 1

clip_long_stringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…