octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59198] jsonencode converts N-dimensional logi


From: Rik
Subject: [Octave-bug-tracker] [bug #59198] jsonencode converts N-dimensional logical arrays to N-dimensional numeric arrays
Date: Mon, 28 Sep 2020 11:35:19 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59198>

                 Summary: jsonencode converts N-dimensional logical arrays to
N-dimensional numeric arrays
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 28 Sep 2020 08:35:17 AM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

The following code is translated to a N-dimensional logical array in Matlab,
but not in Octave.


t = true (2,2,2);
t(1,1,2) = false;
json = jsonencode (t)


You can tell because the JSON text contains "true" and "false" rather than "1"
and "0".






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59198>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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