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 PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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):
https://www.artefact.tk/software/matlab/jsonio/
and octave-rapidjson (C++ Octave wrapper around rapidjson):
https://github.com/Andy1978/octave-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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Feb 2018 10:00:18 PM UTCsiko1056Carbon-Copy-=>Added siko1056
    Fri 09 Feb 2018 04:09:50 PM UTCrik5CategoryNone=>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.1-cleanup1