compile the compound document correctly by displaying items only once, as stated here: http://jsonapi.org/format/#document-structure-compound-documents