@pixelbyaj/jsonapi
v1.0.2
Published
serialize & dserialize json api
Downloads
1
Readme
Typescript based JSONAPI Serialize & Deserialize library
Serialize & Dserialize JSON API
Installation
npm i jsonapi-parser --save
yarn add jsonapi-parser
bower install jsonapi-parser --save
Usage
TypeScript
import { JSONAPI } from '@pixelbyaj/jsonapi';
let jsonapi = new JSONAPI(JSON_API_OBJECT);
jsonapi.serialize().then(x=>{
console.log(JSON.stringify(x));
jsonapi.deserialize(x).then(y=>{
console.log(JSON.stringify(y));
})
});
})