Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 596 Bytes

readme.md

File metadata and controls

38 lines (30 loc) · 596 Bytes

JSON API Deserializer

Build Status

Usage

const deserialize = require('json-api-deserializer');

const jsonApiData = {
  data: [
    {
      type: 'users',
      id: 1,
      attributes: {
        first_name: 'John',
        last_name: 'Doe'
      }
    }
  ]
};

deserialize(jsonApiData);
// Output:
// [
//   {
//     id: 1,
//     first_name: 'John',
//     last_name: 'Doe'
//   }
// ]

Features

  • Nested relationships
  • Circular dependencies