Add support and tests for JSON Patch