_parse_json() — langchain Function Reference
Architecture documentation for the _parse_json() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7793dc6c_9c60_a7a0_ca86_d11624937249["_parse_json()"] 909e1aca_7c35_c9d5_2f9b_81064d86d9e6["JsonEqualityEvaluator"] 7793dc6c_9c60_a7a0_ca86_d11624937249 -->|defined in| 909e1aca_7c35_c9d5_2f9b_81064d86d9e6 4021fe41_65d3_6fa7_5d31_3efed7bb0c71["_evaluate_strings()"] 4021fe41_65d3_6fa7_5d31_3efed7bb0c71 -->|calls| 7793dc6c_9c60_a7a0_ca86_d11624937249 style 7793dc6c_9c60_a7a0_ca86_d11624937249 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/parsing/base.py lines 149–155
def _parse_json(
self,
string: Any,
) -> dict | list | None | float | bool | int | str:
if isinstance(string, str):
return parse_json_markdown(string)
return string
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _parse_json() do?
_parse_json() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/parsing/base.py.
Where is _parse_json() defined?
_parse_json() is defined in libs/langchain/langchain_classic/evaluation/parsing/base.py at line 149.
What calls _parse_json()?
_parse_json() is called by 1 function(s): _evaluate_strings.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free