Netlify-cms: JSON Widget

Created on 31 Jan 2019  路  2Comments  路  Source: netlify/netlify-cms

Is your feature request related to a problem? Please describe.
The ability to save collection files as JSON files exists. However, there is no way to add nested JSON objects, nor is is there a way to add null values to a file. For example, if you paste JSON into a text widget, the resulting collection file contains a value for that text widget key which is a stringified version of the pasted JSON.

Describe the solution you'd like
A widget which supports JSON editing, and does not stringify the input upon saving.

Additional context
This seems like it might be a common use case so I'm wondering if I missed an existing solution.

stale

All 2 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

The code widget can do this: https://www.netlifycms.org/docs/widgets/#code

Was this page helpful?
0 / 5 - 0 ratings