Serializes typed arrays, DataView and ArrayBuffer instances as Base64-encoded string.
import { stringify } from 'json-marshal';import arrayBufferAdapter from 'json-marshal/adapter/array-buffer';stringify(new ArrayBuffer(10), { adapters: [arrayBufferAdapter()] }); Copy
import { stringify } from 'json-marshal';import arrayBufferAdapter from 'json-marshal/adapter/array-buffer';stringify(new ArrayBuffer(10), { adapters: [arrayBufferAdapter()] });
Serializes typed arrays, DataView and ArrayBuffer instances as Base64-encoded string.