Skip to content

API Reference parrot.outputs.formats.json

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

parrot.outputs.formats.json

View source

Alias BaseRenderer

Re-exported from parrot.outputs.formats.base.BaseRenderer.

Class JSONRenderer

Renderer for JSON output. Handles PandasAgentResponse, DataFrames, Pydantic models, and generic content. Adapts output format to Terminal (Rich), HTML (Pygments), and Jupyter (Widgets).

Method JSONRenderer.render

Render response as JSON.

render(response: Any, environment: str = 'default', **kwargs) -> Tuple[Any, Optional[Any]]

Parameter Type Default Description
response Any
environment str 'default'
**kwargs {}

Returns: Tuple[Any, Optional[Any]] — Tuple[str, Any]: (json_string, wrapped_content)

Alias OutputMode

Re-exported from parrot.models.outputs.OutputMode.

Alias register_renderer

Re-exported from parrot.outputs.formats.register_renderer.

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