[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63622] jsonencode breaks down on (nested) emp
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #63622] jsonencode breaks down on (nested) empty struct arrays |
Date: |
Tue, 10 Jan 2023 17:37:06 -0500 (EST) |
Update of bug #63622 (project octave):
Status: Confirmed => Fixed
Open/Closed: Open => Closed
Fixed Release: None => 8.1.0 (current stable)
Planned Release: None => 8.1.0 (current stable)
_______________________________________________________
Follow-up Comment #3:
The issue is that a 0x0 struct array is not being treated as an empty object.
In Matlab, jsonencode correctly returns '[]' for an empty struct array,
whereas Octave is returning an empty string ''.
I fixed that on the stable branch here:
http://hg.savannah.gnu.org/hgweb/octave/rev/b4bde1e47dde. This will be a part
of the 8.1 release.
Marking bug as fixed and closing report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63622>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/