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

Class CustomJSONEncoder

inference/file_tools/file_parser.py:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
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