1.0.2 • Published 4 years ago

@pixelbyaj/jsonapi v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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));
       })
    });
  })