Provide whole form data as a JSON object
I have a workflow with 8-10 levels of approval. The workflow is initiated by an API. I then have to copy the data points (about 100 fields) into a local variable. I then have a task form which will be set with default values from local variable. In essence I need to display all the data received to the Approver.
Now I have further challenge. Approvers can make changes to data before Approving. After every stage of Approval I need to send a snapshot of information back to the API.
This means I need to copy the data one by one again from Form Variable into local variable and then set these local variables as parameters to the API.
What would be great is, if the whole form object be available as one Json - I can just send that json to the API.
Also, if the vice versa of either mapping a form to an object, or to a json and if the form get prepopulated, it would be awesome.