grandMA3 User Manual Publication
ExportJson(filename, export_data)
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » ExportJson(filename, export_data)
|
Version 2.1
|
Description
The object-free ExportJson Lua function exports a Lua table in JSON format.
Known Limitation: | |
The JSON file might not be formatted in proper JSON format. |
Arguments
- Filename:
This is a string containing the file name of the exported file. It should contain the file name, including the entire path. See the example below. - Export_data:
This is the data that is going to be exported. It should be a table object.
Return
- Boolean:
This function returns a boolean.- True:
The export was a success. - False:
The export failed.
- True:
Example
To export the build details table, create a plugin with this code:
Lua |
return function() |