Hi,
Does anyone have experience in configuring json data as input in a content type?
We are running Enonic XP as a headless cms and are in the need of defining different Redux actions that may be associated with for instance clicking on a button. The redux action will be a content type with input fields for configuring the action type and the payload. The question is, how would you implement the payload configuration? I was first thinking name-value-pairs, but the payload objects may be deep structures containing strings, numbers, booleans, arrays and nested objects. Therefore a UI for configuring all these fields one by one might be quite exhausting working with. My other option is having a textarea where the JSON representing the payload can be pasted directly. The controller code will then parse the json string and return as an object. This still seems a bit fragile and exposed for human mistakes.
Any ideas?