JavaScript
{dialog.object}json_to_excel Method
Syntax
{dialog.object}.json_to_excel(json)
Arguments
- jsonArray of JSON Objects
A JSON object to export to Excel. The JSON can either be an object containing an array of objects.
Description
Exports JSON data to Excel, then downloads the file to the client's machine.
Discussion
The {dialog.object}.json_to_excel() method generates an Excel file from JSON data. The JSON data is specified as array of objects where each object represents a record containing the same properties.
Example
var json = [
{"firstname": "Fred", "lastname" : "Jones"},
{"firstname": "Susan", "lastname" : "Smith"}
];
{dialog.object}.json_to_excel(json);