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