node-modules/serialize-json

Name: serialize-json

Owner: node_modules

Description: A serialize algorithm for JSON

Created: 2017-02-03 14:18:58.0

Updated: 2018-01-25 04:20:57.0

Pushed: 2017-12-13 14:58:09.0

Homepage:

Size: 13

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

serialize-json

A serialize algorithm for JSON

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Introduction
Install
m install serialize-json --save

Node.js >= 4.0.0 required

Usage
json = {
 'a',
 123,
 123.456,
 [ 1, 2, 3 ],
 true,
 null,
 undefined,
 new Date(),
 new Buffer('this is a buffer'),
 new Error('this is a error'),

t buf = JSON.encode(json);
t result = JSON.decode(buf);
rt.deepEqual(result, json);
API

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.