The JSON
pane allows rendering arbitrary JSON strings, dicts and other json serializable objects in a panel.
Parameters:
For details on other options for customizing the component see the layout and styling how-to guides.
depth
(int): Depth to which the JSON structure is expanded on initialization (depth=-1
indicates full expansion)hover_preview
(bool): Whether to enable hover preview for collapsed nodesobject
(str or object): JSON string or JSON serializable objecttheme
(string): If no value is provided, it defaults to the current theme set by pn.config.theme, as specified in the JSON.THEME_CONFIGURATION dictionary. If not defined there, it falls back to the default parameter value ('light').
The JSON
pane can be used to render a tree view of arbitrary JSON objects which may be defined as a string or a JSON-serializable Python object.
Controls
The JSON
pane exposes a number of options which can be changed from both Python and Javascript. Try out the effect of these parameters interactively: