JSON-patch utilities for transforming a stream of JSON documents into a stream of JSON patches and vice versa