to JSON
To retrieve the data of the current form in JSON format.
Syntax
or
Returns
All the values in the data form in JSON format.
Example
To view all the values in the employee data form, use this toJSON method and obtain the complete set of field values in JSON format.
Example output for the above scenario: