[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #9980] JSON encoder and decoder, alternati

From: anonymous
Subject: [Octave-patch-tracker] [patch #9980] JSON encoder and decoder, alternative to object2json
Date: Tue, 27 Oct 2020 09:25:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Follow-up Comment #16, patch #9980 (project octave):

Update 'toJSON' and 'fromJSON' have been uploaded.  

There were couple of other minor fixes needed for Octave 7 that produced no
change in behavior, except one...

Octave 7 has changed its behavior regarding 'str2func'.  It is not as strict
as in v5.2.  As a result, in v5.2, "fromJSON('@nofunc')" will return a string
or function '@nofunc' depending on existence of 'nofunc' as a function; while
in v7, "fromJSON" will *always* return a function '@nofunc', whether it is
valid or not.

This is an edge-case scenario, in that transmitting functions over JSON is
unusual in itself.  As such, to resolve this issue, I've simply removed the
BIST test specifically for non-existing functions.  

Also, please note, the HELP doc remains broken with regards to layout.  I'm
relying on some help on this issue.

(file #50136, file #50137)

Additional Item Attachment:

File name: fromJSON_v2_1.m                Size:17 KB

File name: toJSON_v2_1.m                  Size:13 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]