Extract Json • Rust AI Agent SDK
extract_json: Extract JSON from a string that may contain markdown code blocks
extract_json
Function
</div>
This function is defined in the parse_utils module.
Extract JSON from a string that may contain markdown code blocks
Signature
def extract_json(text: &str) -> Option<&str>Parameters
ParamField
&strNo description available.
Uses
trimfindrfind
Source
View on GitHubpraisonai/src/parity/parse_utils.rs at line 246