Convert JSON to a Scilab variable.
result = fromJSON(jsonData) result = fromJSON(jsonFilename, "file")
This function converts a string or a JSON file into a Scilab variable.
NaN, Infinity and -Infinity are converted to %nan, %inf and -%inf.
JSON null is converted to an empty matrix [] while it is converted to %nan in number arrays.
Non-homogeneous data types or size arrays are converted into a list of elements.
| Version | Description |
| 6.1 | Function introduced. |
| 2023.0.0 | Handling of tabs (ascii(9)) changed. |
| 2024.1.0 | NaN, -Infinity and Infinity values are now managed. |