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

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

[Octave-bug-tracker] [bug #63199] [feature request] add a function to in


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63199] [feature request] add a function to inverse eval() function
Date: Tue, 11 Oct 2022 06:49:51 -0400 (EDT)

Follow-up Comment #7, bug #63199 (project octave):

I might have misunderstood your original issue.
I understood you'd like to transfer variable values from a remote instance
running Octave to a local instance.
In that scenario, you could use `jsonencode` on the remote machine to prepare
the data for transmission and `jsondecode` on the local machine to recover the
original data.
Every JSON string that you'd receive would be created by `jsonencode`.
`jsondecode` would only be used on JSON strings created by `jsonencode`. So,
only roundtrips from Octave value -> JSON string -> Octave value would need to
recover the original value. You wouldn't receive "arbitrary" JSON encoded
data.

I don't know if there is any guarantee that differing JSON strings would be
decoded to unique data. (And I don't think you'd need that guarantee.)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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