MCPcopy Create free account
hub / github.com/Alibaba-NLP/DeepResearch / default

Method default

inference/file_tools/file_parser.py:41–44  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

39
40class CustomJSONEncoder(json.JSONEncoder):
41 def default(self, obj):
42 if isinstance(obj, (datetime, Timestamp)):
43 return obj.isoformat()
44 return super().default(obj)
45
46
47class FileParserError(Exception):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected