akkudoktoreos.server.dash.components.JsonView

akkudoktoreos.server.dash.components.JsonView(data: partial(<function ft at 0x7a21754a1da0>, 'pre', void_=False)

Render structured data as formatted JSON inside a styled <pre> block.

The data is serialized to JSON using indentation for readability and UTF-8 characters are preserved. The JSON is wrapped in a <code> element with a JSON language class to support syntax highlighting, and then placed inside a <pre> container with MonsterUI-compatible styling.

The JSON output is height-constrained and scrollable to safely display large payloads without breaking the page layout.

Parameters:

data – Any JSON-serializable Python object to render.

Returns:

A FastHTML Pre element containing a formatted JSON representation of the input data.