This gem will help to to deserialize and consume data from a jsonapi. https://github.com/Sonberg/jsonapi-unwrapper
Per Sonberg
MIT