json-merge-patch library provides functions to merge json in accordance with https://tools.ietf.org/html/rfc7386