MCPcopy Create free account
hub / github.com/aliyun/data-agent-skill / _extract_json_objects

Function _extract_json_objects

scripts/cli/formatters.py:218–242  ·  view source on GitHub ↗

Extract all JSON objects/arrays from a mixed content string. Handles cases like: - Plain text before JSON: "some text {...}" - Multiple JSONs concatenated: '{"a":1}{"b":2}' - Text between JSONs: '{...} text {...}' Returns list of (start, end, parsed_json) tuples.

(content: str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

_handle_data_task_finishFunction · 0.90
_handle_data_fallbackFunction · 0.90
_format_data_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected