I created a JSON editor component for one of my plugins a while ago. I needed it in another plugin and decided to split the editor into its own plugin so I can reuse it multiple times.
Since the plugin provides a JSON editor Vue component, I figured I should add a JSON field along with it as well, which I did. So there you have it:
If you need a JSON field, use this plugin. If you need a JSON editor to use in your panel view plugin, use this plugin and the k-json-editor
component it provides.
You simply composer require oblik/kirby-json
in your plugin and then use the component. For example, hereβs how I use it in my variables-field plugin.