middleware to update distributed copies of a json object to reflect changes on any of these copies