JSON Patch, as described here and as specified in RFC 6902 from the IETF, is a format for describing changes to JSON documents using operations like add, remove, replace, copy, move and test. The experimental JSON Patch assertion can apply JSON Patch operations to JSON documents in policy on the Layer7 API Gateway. Some users may find this easier and faster than using the Javascript assertion to do the same.
For example, this JSON Patch:
[
{
"op": "remove",
"path": "/bad"
},
{
"op": "replace",
"path": "/baz",
"value": "boo"
},
{
"op": "add",
"path": "/hello",
"value": [
"world",
"system",
"galaxy",
"universe"
]
},
{
"op": "add",
"path": "/car",
"value": {
"make": "Honda",
"model": "Civic"
}
}
]
Applied to this JSON message:
{
"baz": "qux",
"foo": "bar",
"bad": "stuff"
}
Would return this result:
{
"foo": "bar",
"baz": "boo",
"hello": [
"world",
"system",
"galaxy",
"universe"
],
"car": {
"make": "Honda",
"model": "Civic"
}
}
When configuring the assertion in policy as so:

If this is something of interest to you, please reply directly to me.
Experimental Features
Early access progressive delivery features that are rapidly developed by Layer7 and offered to customers for experimentation. Not intended for production use. Depending on user feedback, experimental features may be altered in or removed from future releases.
Layer7 support is not available. Users are encouraged to share feedback in Layer7 Communities as responses to this thread
------------------------------
Ben Urbanski
Product Manager, API Gateway
Layer7 API Management
------------------------------