serde-fns
v1.0.0
Published
simple shapes and procedures for serde with a pit-of-success
Downloads
73
Maintainers
Readme
serde-fns
simple shapes and procedures for serde with a pit-of-success
install
npm install serde-fns
use
for example
import { isSerialJSON, SerialJSON } from 'serde-fns';
const words = '{"hello":"world"}';
const isValid = isSerialJSON.assess(words);
const json: SerialJSON = isSerialJSON.assure(words);
const obj = deSerialJSON(json)