Module adapter/array-buffer

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()] });

Index

Functions