bugGNU Octave - Bugs: bug #53100, implement jsondecode, jsonencode...


bug #53100: implement jsondecode, jsonencode functions

Submitted by:  CH <atcl>
Submitted on:  Thu 08 Feb 2018 10:22:09 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 09 Feb 2018 04:09:50 PM UTC, comment #3:

I would be happy to follow Philip's suggestion and introduce these two functions in to the io package, and then migrate them to core after they have proved stable and useful.

Matlab has a habit of adding functions that persist for only a few releases before being renamed or even removed. These two have the feel of functions that are going to eventually change.

Rik <rik5>
Project Administrator
Fri 09 Feb 2018 09:42:30 AM UTC, comment #2:

Also have a look at JSONio (C MEX wrapper around jsmn):
and octave-rapidjson (C++ Octave wrapper around rapidjson):

Guillaume <gyom>
Fri 09 Feb 2018 07:51:47 AM UTC, comment #1:

I'd rather call it's a feature request.

The io package contains a (contributed) json2object function.
What if people who want to write jsonencode and jsondecode contribute it to the io package (I'll happily accept them) to mature there? Once stable enough they can be moved to core Octave, if the core devs agree of course.
The io package is more regularly updated than Octave releases.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 08 Feb 2018 10:22:09 PM UTC, original submission:

Matlab introduced the function jsondecode(string) which parses a json formatted string to a cell array of predefined output types based on the json input type. Similarly, jsonencode converts data into a json formatted string. Further details are in the documentation.

An open-source json parser for Octave and MATLAB is here: https://github.com/fangq/jsonlab which may be of help.

CH <atcl>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by siko1056 (interested)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by atcl (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-12 siko1056 Carbon-Copy- => Added siko1056
    2018-02-09 rik5 CategoryNone => Octave Forge Package
        Item GroupMatlab Compatibility => Feature Request
        StatusNone => Confirmed
        Summaryjsondecode (and jsonencode) => implement jsondecode, jsonencode functions

    Back to the top

    Powered by Savane 3.3