Note: This documentation uses the legacy approach with extensions. We have launched JSON Editor as a Marketplace App. For more information on JSON Editor, please refer to the JSON Editor App Installation Guide.
The JSON Editor custom field extension enables users to input data that is in JSON as well as in other formats such as normal “text,” “code,” “tree” format, “form,” and “view.”
This step-by-step guide explains how to create a JSON Editor custom field extension for your content types in Contentstack:
To add this custom field extension to your stack, log in to your Contentstack account and perform the following steps:
Click on the
+ New
Extensions
button, and select the
Use prebuilt
option.

Hover over JSON Editor, and click on + Add Extension.

In the
Create New Extension
page, you will see the following options:
Config Parameters
(optional)
: Provide values for the config parameters if you have used any in the source code.

After saving the custom field, let’s learn how to start using this custom field in your content type.
To use JSON Editor custom field in your content type, perform the following steps:
by adding relevant details as displayed below.

Select
JSON Editor
from the
Select Extension
dropdown menu, and configure other properties of your custom field.
Note: You can provide specific instance-level configuration settings for your Custom Field extension by referring to the Config parameters section.
After adding other fields to your content type, click on either Save or Save and Close button. This will create a content type.
To use the JSON editor,
create an entryfor this content type, and you will see this field on your entry page as shown below:

Additional Resource: Refer to our guide on how to add the Ace Editor, a prebuilt custom field that includes features of code editors like Sublime and Vim.