I would like to use the svelte-jsoneditor to create some mapping component. Mapping from a JSON source to JSON target format.
This can be seen on the screen shot below.
In order to migrate to this editor I look for two features:
highlight/select a element in the displayed JSON document, something like setSelection(path)
register a callback if an element is selected in the editor: something like onSelection(path)
The current mapper works as follows:
you select an element in the source document: pathSource
you select an element in the target document: pathTarget
this create a mapping
Is something like this possible with the current editor?
I have read the other issues and got the impression that for 1. there exists already a feature request #163.
Thanks for your inputs! Yes #163 is to discuss both getting and setting a selection. I've updated my comment there to clarify that a bit more. Let's continue the discussion there to keep it focused.
Hi,
I would like to use the svelte-jsoneditor to create some mapping component. Mapping from a JSON source to JSON target format. This can be seen on the screen shot below. In order to migrate to this editor I look for two features:
setSelection(path)
onSelection(path)
The current mapper works as follows:
Is something like this possible with the current editor? I have read the other issues and got the impression that for 1. there exists already a feature request #163.
Regards Christof