Scilab crashes using toJSON as described in the documentation
Reported by Sven Jacobitz (@jacobitz1)
BUG DESCRIPTION:
----------------
https://help.scilab.org/docs/6.1.0/en_US/toJSON.html
If I'm using the toJSON function as mentioned in the documentation (writing to a file and indent the result):
result = toJSON(var, filename, indent)
scilab crashes.
ERROR LOG:
----------
Where is the error log of Scilab???
HOW TO REPRODUCE THE BUG:
-------------------------
Open Scilab 6.1 and execute the following code:
toJSON(["a" "b"], pathconvert("./someDir/")+"test.json", 1);
OTHER INFORMATION:
------------------
If I change the input order to: result = toJSON(var, indent, filename) it works properly. Also, "result = toJSON(var, filename)" and "result = toJSON(var, indent)" works.