[Numpy-discussion] numpy array serialization with JSON
Mon Nov 10 11:36:34 CST 2008
On Mon, Nov 10, 2008 at 11:25, Simon Palmer <firstname.lastname@example.org> wrote:
> Does anyone have a recommendation of a library/method for serialization of
> numpy arrays to and from text (specifically for the purposes of embedding in
> XML)? I don't want to use pickle or tostring() because my XML has to be
> consumable across a variety of programming environments.
If you only need to support typical dtypes, just use tostring() (and
base64 encoding) and a little bit of XML to provide the shape and
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion