Separated out JSONAPI class