ndarray-json

Serialize/deserialize ndarrays to and from JSON

Usage no npm install needed!

<script type="module">
  import ndarrayJson from 'https://cdn.skypack.dev/ndarray-json';
</script>

README

ndarray-json experimental

Serialize/deserialize ndarrays to and from JSON. Right now there's a good chance it's not going to be the most appropriate means of encoding, but base64DecToArray might make it reasonable.

Installation

npm install ndarray-json

Usage

require('ndarray-json').stringify(ndarray)

Stringifies an ndarray into JSON.

require('ndarray-json').parse(ndarray)

Takes a stringified ndarray and returns a new copy.