fromJSON
Convert JSON to scilab variable.
Syntax
result = fromJSON(jsonData) result = fromJSON(jsonFilename, "file")
Arguments
- jsonData
- A string containing JSON data.
- jsonFilename
- Path and name of the file containing input JSON data.
- result
- If the string is a correct JSON, result contain the scilab variable.
Description
This function convert string or JSON files into a Scilab variable.
Examples
fromJSON("{status: OK, value:12}") fromJSON("[1, 2, 3]") fromJSON("{test:[a, b], values:[1, 2]")
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.
- toJSON — Convert scilab variable to JSON.
- http_get — HTTP GET request.
History
バージョン | 記述 |
6.1 | Function introduced. |
Report an issue | ||
<< Web Tools | Web Tools | http_delete >> |