JSON Editor

An advanced text area to edit JSON. It supports syntax highlighting and formatting, and find and replace using regular expression.

JSON Editor attempts to correct and validate malformed content.

Properties

Available properties for JSON Editor. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

NameDescriptionvalue

A JavaScript object evaluated from the edited JSON.

valid

Whether the edited JSON is valid.

Events

Events are triggered by user interactions with JSON Editor. Use event handling to trigger queries or other actions in response to events.

NameDescriptionChange

A user changes the current value.

Methods

Methods for interacting with JSON Editor. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

setValue(value: string)

Set the current value.