mmd-jsonapi-deserializer
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

JSON API Deserializer

This package presents a simple and fast function to deserialize JSON API documents to simple javascript objects. The implementation is a synchronous (but efficient) alternative to Seyz/jsonapi-serializer's deserializer.

Install

npm install jsonapi-deserializer --save

Usage

var jsonapiDocument = { /* ... */ };

// Node
var deserialize = require('jsonapi-deserializer').deserialize;
var simpleObj = deserialize(jsonapiDocument);

// ES6 - Typescript
import { deserialize } from 'jsonapi-deserializer';
let simpleObj = deserialize(jsonapiDocument);

Run tests

Get the repo (git clone), install dependencies (npm install) and run the default test suite (npm test). There's not many tests since they're being developed as necessary. Open a new issue if you find incorrect/undesired behavior.

/mmd-jsonapi-deserializer/

    Package Sidebar

    Install

    npm i mmd-jsonapi-deserializer

    Weekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    17 kB

    Total Files

    12

    Last publish

    Collaborators

    • mammad2c