GSoC 2020: jsondecode status

Abdallah Elshamy <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CAAVkm5CP-dhj2TuMXkE875qJHutqNVB8DQsSsiMd0D1ayMp4pw@mail.gmail.com>
Hello everyone,

I have finished the first draft for jsondecode [1] function on my github
repo [2]. I have also added a few test cases [3] (I verified that they work
on MATLAB online). The function now passes all the test cases.

Right now, the function is treated as an external *.oct file. The
integration of the code into Octave's build system will be done at the end
of the project. I transformed the test suite into Octave-compatible test
files that can be found in "test/json" directory [4].

If you have any ideas for improvements, please let me know. I am waiting
for your feedback and suggestions.

A good idea that was suggested by the author of JSONio [5] was to add
a "ReplacementStyle"
option [6] when creating a structure's field name. What do you think about
this?

Thanks for your time,
Abdallah


[1] https://www.mathworks.com/help/matlab/ref/jsondecode.html
[2]
https://github.com/Abdallah-Elshamy/octave/blob/json/libinterp/corefcn/jsondecode.cc
[3]
https://github.com/Abdallah-Elshamy/octave/commit/933e6ff0b47fb85e7cbe72b30bcd1660eb86deff
[4] https://github.com/Abdallah-Elshamy/octave/tree/json/test/json
[5] https://github.com/Abdallah-Elshamy/octave/issues/5
[6] 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.