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

python
def extract_json(text: &str) -> Option<&str>

Parameters

ParamField &str

No description available.

Uses

  • trim
  • find
  • rfind

Source

View on GitHub

praisonai/src/parity/parse_utils.rs at line 246