Just in case someone else faces this. The answer is no, json patch does not allow to use that expression. Luckly, newer versions of argocd enable the usage of json path (!=patch) by the new "jqPathExpressions":
data:
resource.customizations: |
admissionregistration.k8s.io/MutatingWebhookConfiguration:
ignoreDifferences: |
jqPathExpressions:
- '.webhooks[]?.clientConfig.caBundle'
Answer from carrotcakeslayer on Stack OverflowArchipelago
docs.archipelago.nyc › 1.1.0 › find_and_replace_action_json_patch
Using the JSON Patch Metadata for Archipelago Digital Objects VBO action - Archipelago Documentation
You can not replace a single word inside a value via a JSON Patch. But you can apply multiple precise operations in a single pass. When you need to change data types. e.g. convert a single value into an array. When you need safety. The fact that a single failed “test“ will cancel a whole JSON Patch allows you to operate with safety and ensure the final destination will always be a JSON
Jsonpatch
jsonpatch.com
JSON Patch | jsonpatch.com
JSON Patch is a format for describing changes to a JSON document. It can be used to avoid sending a whole document when only a part has changed.
JSON Patch
For example, Firebase doesn't let you store null values. Instead, for Firebase, setting something to null means the same as deleting it. With a single simple restriction like that, you can implement PATCH simply by accepting a (recursive) partial object of whatever that endpoint. More on news.ycombinator.com
Is there a way to update items in an array with JsonPatch?
But since I'm not aware of the ... using JsonPointer. Is there something that can be done to do an update that targets all the elements of array1 (i.e all the subarrays) in one go? Something like this: [{ "op": "add", "path": "/array1/*/subarray1/0", "value": "gk-new" }] After invocation, the resulting subarrays should have an additional element "gk-new" in addition to what they have? ... There is no wildcard support in ... More on stackoverflow.com
How to specify relative- and wildcard-paths in JSON Transformer node?
The following example JSON structure is given: { "membership" : [ { "number" : "1", "date" : "2023-12-01" } ], "addresses" : [ { "id" : "123", "company_name" : "xyz", "salutation" : "mr" },{ "id" : "456", "company_name" : "dfg", "salutation" : "ms" } ] } Using a JSON Transformer Node, I would ... More on forum.knime.com
jsonpath - json-patch wildcard usage in argocd manifest - Stack Overflow
Just in case someone else faces this. The answer is no, json patch does not allow to use that expression. Luckly, newer versions of argocd enable the usage of json path (!=patch) by the new "jqPathExpressions": More on stackoverflow.com
json-everything
docs.json-everything.net › patch › basics
JsonPatch.Net Basics | json-everything
5 days ago - JsonPatch operates on JsonNode? values. To apply the patch, parse the document and pass the root element into the .Apply() method.
Hacker News
news.ycombinator.com › item
JSON Patch | Hacker News
October 26, 2024 - For example, Firebase doesn't let you store null values. Instead, for Firebase, setting something to null means the same as deleting it. With a single simple restriction like that, you can implement PATCH simply by accepting a (recursive) partial object of whatever that endpoint.
Stack Overflow
stackoverflow.com › questions › 73708523 › is-there-a-way-to-update-items-in-an-array-with-jsonpatch
Is there a way to update items in an array with JsonPatch?
Something like this: [{ "op": "add", ... an additional element "gk-new" in addition to what they have? ... There is no wildcard support in JsonPatch or JsonPointer....
GitHub
github.com › tjgq › jsonpatch-extended-js
GitHub - tjgq/jsonpatch-extended-js: Javascript library to apply JSON Patches with JSON Pointer syntax extensions.
JSON Patch - http://tools.ietf.org/html/rfc6902 · JSON Pointer - http://tools.ietf.org/html/rfc6901 · Extensions (to be documented): wildcard references · attribute lookahead · lax mode · jsonpatch.apply(document, patch, lax=true) Applies a patch set to the document.
Author tjgq
IETF
datatracker.ietf.org › doc › html › rfc6902
RFC 6902 - JavaScript Object Notation (JSON) Patch
JSON Patch defines a JSON document structure for expressing a sequence of operations to apply to a JavaScript Object Notation (JSON) document; it is suitable for use with the HTTP PATCH method. The "application/json-patch+json" media type is used to identify such patch documents.
GitHub
github.com › GoogleContainerTools › skaffold › issues › 4438
[feature request] json path support wildcard · Issue #4438 · GoogleContainerTools/skaffold
July 2, 2020 - [feature request] json path support wildcard#4438 · Copy link · Labels · area/profileskind/feature-requestpriority/p3agreed that this would be good to have, but no one is available at the moment.agreed that this would be good to have, but no one is available at the moment. jk2K · opened · on Jul 2, 2020 · Issue body actions · add build arg REPO_FROM to all artifact · like · patches: - op: add path: /build/artifacts[*]/docker/buildArgs value: REPO_FROM: 'registry.demo.com/avatar/internal/' error ·
Author jk2K
Wikipedia
en.wikipedia.org › wiki › JSON_Patch
JSON Patch - Wikipedia
November 3, 2025 - JSON Patch is a web standard format for describing changes in a JSON document. It is meant to be used together with HTTP PATCH which allows for the modification of existing HTTP resources. The JSON Patch media type is application/json-patch+json. A JSON Patch document is structured as a JSON ...
Adminswerk
adminswerk.de › kustomize-wildcard-replace-list
Kustomize: Wildcard replace all items of a list › /dev/blog/ID10T
But you want to have a more lenient ... targeting list items with Kustomize patchesJson6902 method is simple. Sadly, wildcard replacement for list items are not implemented in the JSON Patch standard....
GitHub
github.com › kyverno › kyverno › issues › 2307
Support iterator in patchesJson6902 · Issue #2307 · kyverno/kyverno
August 25, 2021 - A successful jsonpatch would have to look like this: {"op":"add","path":"/subsets/*/addresses/-","value":{"ip":"192.168.42.172"}} But jsonpatch does not have any wildcard * operator as far as I know.
Author realshuting
GitHub
github.com › claytongulick › json-patch-rules
GitHub - claytongulick/json-patch-rules: Tools and specification for defining rules about how a json patch should be applied to an object · GitHub
This situation leaves it up to each server implementation to explicitly check patch paths and verify rules, which can be tedius. This project provides a proposed spec and a simple utility to declaratively define PATCH rules. A rule set is simply a JSON array of rule objects.
Starred by 6 users
Forked by 3 users
Languages JavaScript
Zuplo
zuplo.com › home › learning center › unlocking the power of json patch
Unlocking the Power of JSON Patch - Zuplo
October 10, 2024 - The PATCH method was introduced to allow for partial updates, but there was no standardized format for the patch document. JSON Patch fills this gap by providing a clear, concise way to express changes to a JSON document, helping to reduce bandwidth, and improve the performance of web applications.
Microsoft Learn
learn.microsoft.com › en-us › aspnet › core › web-api › jsonpatch
JSON Patch support in ASP.NET Core web API
June 25, 2025 - In web apps, JSON Patch is commonly used in a PATCH operation to perform partial updates of a resource. Rather than sending the entire resource for an update, clients can send a JSON Patch document containing only the changes.