JSON Test suite status

Abdallah Elshamy <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CAAVkm5DFmw=BiS+HKUjPu47RHkimtcf4kDBvwUrixGYRVQ4MJA@mail.gmail.com>
Greetings,

The testing suite [1] for jsonencode [2] and jsondecode [3] is almost
complete (Any suggestions for something to add are surely very welcomed)
except for checking if errors is raised correctly This will wait after
coding the functions (during writing the BIST) so that the error messages
is determined.

Also in MATLAB, they don't support encoding for complex numbers. Is it
better to follow this approach or should we support encoding for it? Maybe
encoding it to a JSON object with two keys: "real" and "imaginary".

Lastly in decoding json objects to structs MATLAB uses makeValidName [4] in
converting the keys of the objects to a valid field in the struct (as it
doesn't allow the fields of a struct to start with a space or a number ...
etc.) As this is valid in Octave, I don't think that this will be
necessary. What do you think?

Best,
Abdallah

[1] https://github.com/Abdallah-Elshamy/octave/tree/test-suite/test/json
[2] https://www.mathworks.com/help/matlab/ref/jsonencode.html
[3] https://www.mathworks.com/help/matlab/ref/jsondecode.html
<https://www.mathworks.com/help/matlab/ref/jsondecode.html>
[4] https://www.mathworks.com/help/matlab/ref/matlab.lang.makevalidname.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.