Skip to content

API Reference parrot_loaders.extractors.json_source

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_loaders.extractors.json_source

View source

JSON data source for structured record extraction.

Alias ExtractDataSource

Re-exported from parrot_loaders.extractors.base.ExtractDataSource.

Alias ExtractionResult

Re-exported from parrot_loaders.extractors.base.ExtractionResult.

Class JSONDataSource

Extract structured records from JSON files or arrays.

Method JSONDataSource.extract

Parse JSON and extract records from the configured path.

extract(fields: list[str] | None = None, filters: dict[str, Any] | None = None) -> ExtractionResult

Parameter Type Default Description
fields list[str] | None None Optional field projection.
filters dict[str, Any] | None None Optional key-value filters applied in-memory.

Returns: ExtractionResult — ExtractionResult with JSON records.

Method JSONDataSource.list_fields

Load first record and return its keys.

list_fields() -> list[str]

Returns: list[str] — List of field names from the first record.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally