Merge a series of JSON documents.