1.0.0-alpha.2 • Published 8 years ago

jsserializer-json v1.0.0-alpha.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

jsserializer-json

NPM version Build Status Coverage Status

A jsserializer adapter for Json

Example

// import the adapter
import json from 'jsserializer-json';
// import this library
import serializer from 'jsserializer';
// load in the adapter
let service = serializer(json);
// provide the serializer options
let options = {};
// serialize
let obj = service.parse('{"test": 123}', options);
let str = service.stringify(obj, options);

Install

NPM

  • Install: npm install --save jsserializer
  • Install: npm install --save jsserializer-json

API

PropertytypeparamsDescription
extensionsgetterstring[]
parsefunction(source: string, options: Object)
stringifyfunction(source: Object, options: string)

License

Copyright (c) 2016 https://github.com/orgs/jsserializers/people. All rights reserved.

Licensed under the MIT License. See LICENSE in the project root for license information.