Fetching an existing JSON Variable
The Form SDK will only fetch those variables which are actually used in a form. Since a JSON object is usually not bound to a single input field, we cannot use thecam-variable-name directive.
We thus need to fetch the variable programatically:
Creating a new JSON Variable
You can use JSON objects in your embedded forms. In order to persist this data in the process instance, you have to explicitely create the variable in thevariableManager. This code-snippet creates the variable customer.