MCPcopy Create free account
hub / github.com/VectifyAI/PageIndex / get_json_content

Function get_json_content

pageindex/utils.py:85–96  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

83
84
85def get_json_content(response):
86 start_idx = response.find("```json")
87 if start_idx != -1:
88 start_idx += 7
89 response = response[start_idx:]
90
91 end_idx = response.rfind("```")
92 if end_idx != -1:
93 response = response[:end_idx]
94
95 json_content = response.strip()
96 return json_content
97
98
99def extract_json(content):

Callers 1

toc_transformerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected