MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / parse_json

Function parse_json

worked/example/raw/parser.py:49–53  ·  view source on GitHub ↗

Parse a JSON document into a structured dict.

(text: str)

Source from the content-addressed store, hash-verified

47
48
49def parse_json(text: str) -> dict:
50 """Parse a JSON document into a structured dict."""
51 import json
52 data = json.loads(text)
53 return {"data": data, "format": "json"}
54
55
56def parse_plaintext(text: str) -> dict:

Callers 1

parse_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected