Skip to main content
The JSON field stores JSON values directly. In the admin panel, editors work in a code editor with syntax highlighting. Use a Code field instead when the database value must always be a string.

Config options

Admin options

JSON fields support the standard field admin options, plus these options: For example, admin.editorOptions accepts Monaco editor options:

JSON Schema validation

Provide a local schema to add completion hints and reject invalid values when a record is saved:
A schema can also be loaded from a public URL by providing uri and fileMatch without an inline schema. Prefer an inline or imported schema when availability must not depend on a remote server.

Custom components

Override the field or its label through admin.components. Custom components can wrap FrogBot’s default JSON editor.

Field

Server component

Client component

Label

Server component

Client component