Home / Function/ test_parse_json_with_code_blocks_and_newlines() — langchain Function Reference

test_parse_json_with_code_blocks_and_newlines() — langchain Function Reference

Architecture documentation for the test_parse_json_with_code_blocks_and_newlines() function in test_json.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  893677fb_b100_996d_599a_d98c3c7fd77c["test_parse_json_with_code_blocks_and_newlines()"]
  8edb1db9_86b9_7cd9_158b_8b5423c9a6dd["test_json.py"]
  893677fb_b100_996d_599a_d98c3c7fd77c -->|defined in| 8edb1db9_86b9_7cd9_158b_8b5423c9a6dd
  style 893677fb_b100_996d_599a_d98c3c7fd77c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_json.py lines 209–214

def test_parse_json_with_code_blocks_and_newlines() -> None:
    parsed = parse_json_markdown(JSON_WITH_MARKDOWN_CODE_BLOCK_AND_NEWLINES)
    assert parsed == {
        "action": "Final Answer",
        "action_input": '```bar\n<div id="1" class="value">\n\ttext\n</div>```',
    }

Subdomains

Frequently Asked Questions

What does test_parse_json_with_code_blocks_and_newlines() do?
test_parse_json_with_code_blocks_and_newlines() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_json.py.
Where is test_parse_json_with_code_blocks_and_newlines() defined?
test_parse_json_with_code_blocks_and_newlines() is defined in libs/core/tests/unit_tests/output_parsers/test_json.py at line 209.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free