1.1.0 • Published 10 months ago
json-codec v1.1.0
json-codec
Serializes JSON expressions while retaining the original object type.
Accepts the following primitives, including arrays and objects:
stringnumberbooleanundefinednull
Installation
npm install json-codecUsage
import { stringify, parse } from "json-codec";
const encoded = stringify({
key: "value",
});
const decoded = parse(encoded);