Convert scilab variable to JSON.
result = toJSON(var) result = toJSON(var, filename) result = toJSON(var, filename, indent)
The Scilab variable to convert in JSON format.
If a file name is given, the conversion is written in this file.
If this argument is given, the result is indented. The value is the size of TAB.
Result is a string which contain the data converted to JSON. If a filename is given, no result is returned.
This function convert a Scilab variable into a string or JSON files.
Version | Description |
6.1 | Function introduced. |