dist/jsonapi.js
function flatten(record, extraMeta) {
        var meta = extend({}, record.meta, extraMeta)
        return extend(
            {},
            { links: record.links, meta: meta },
            record.attributes,
            { id: record.id, type: record.type }
        );
    }
function flatten(record, extraMeta) {
        var meta = extend({}, record.meta, extraMeta)
        return extend(
            {},
            { links: record.links, meta: meta },
            record.attributes,
            { id: record.id, type: record.type }
        );
    }
function flatten ( record , extraMeta ) { var meta = extend ( { } , record . meta , extraMeta ) return extend ( { } , { links : record . links , meta : meta } , record . attributes , { id : record . id , type : record . type } ) ; }
Flatten the ID of an object with the rest of the attributes on a new object
Flatten the ID of an object with the rest of the attributes on a new object