mohuk / ts-jsonapi

JSON API (De)Serializer in Typescript
MIT License
52 stars 10 forks source link

how to deserialize? #3

Closed victorhazbun closed 7 years ago

victorhazbun commented 7 years ago

there is no documentation about how to use this library, can you please help me?

mohuk commented 7 years ago

Hey

The API is the same as jsonapi-serializer since it is just a Typescript port.

A sample deserialize operation is just like

let response: any = new Deserializer({
    keyForAttribute: 'camelCase'
}).deserialize(res.json());