Scilab-Branch-6.1-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
toJSON
Convert scilab variable to JSON.
Syntax
result = toJSON(var) result = toJSON(var, indent) result = toJSON(var, filename) result = toJSON(var, indent, filename)
Arguments
- var
The Scilab variable to convert in JSON format.
- filename
If a file name is given, the conversion is written in this file.
- indent
If this argument is given, the result is indented. The value is the size of TAB.
- result
Result is a string which contain the data converted to JSON. If a filename is given, no result is returned.
Description
This function convert a Scilab variable into a string or JSON files.
Examples
See also
- http_post — HTTP POST request.
- http_put — HTTP PUT request.
- http_patch — HTTP PATCH request.
- http_delete — HTTP DELETE request.
- http_upload — HTTP POST or PUT request to upload file(s) on server.
- fromJSON — Convert JSON to scilab variable.
- http_get — HTTP GET request.
History
Version | Description |
6.1 | Function introduced. |
Report an issue | ||
<< http_upload | Web Tools | Windows tools >> |