
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
llama-index-readers-json
Advanced tools
JSON Reader reads JSON documents with options to help extract relationships between nodes. It provides functionalities to control the depth of JSON traversal, collapse long JSON fragments, and clean JSON structures.
You can install JSON Reader via pip:
pip install llama-index-readers-json
from llama_index.readers.json import JSONReader
# Initialize JSONReader
reader = JSONReader(
# The number of levels to go back in the JSON tree. Set to 0 to traverse all levels. Default is None.
levels_back="<Levels Back>",
# The maximum number of characters a JSON fragment would be collapsed in the output. Default is None.
collapse_length="<Collapse Length>",
# If True, ensures that the output is ASCII-encoded. Default is False.
ensure_ascii="<Ensure ASCII>",
# If True, indicates that the file is in JSONL (JSON Lines) format. Default is False.
is_jsonl="<Is JSONL>",
# If True, removes lines containing only formatting from the output. Default is True.
clean_json="<Clean JSON>",
)
# Load data from JSON file
documents = reader.load_data(input_file="<Input File>", extra_info={})
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.
FAQs
llama-index readers json integration
We found that llama-index-readers-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.