MCPcopy Create free account
hub / github.com/YiTangMJ/GraphRAG-Example / sanitizeJson

Function sanitizeJson

src/services/llmExtractor.js:99–122  ·  view source on GitHub ↗

* Sanitize common JSON formatting issues from LLM output: * - Chinese punctuation (,→ , :→ : "" → "") * - Trailing commas before ] or } * - Single quotes used as string delimiters

(str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parseExtractionResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected