| = JsonPatch Component |
| :doctitle: JsonPatch |
| :shortname: json-patch |
| :artifactid: camel-json-patch |
| :description: Transforms JSON using JSON patch (RFC 6902). |
| :since: 3.12 |
| :supportlevel: Stable |
| :tabs-sync-option: |
| :component-header: Only producer is supported |
| //Manually maintained attributes |
| :camel-spring-boot-name: json-patch |
| |
| *Since Camel {since}* |
| |
| *{component-header}* |
| |
| The JsonPatch component allows you to process JSON messages using an |
| https://github.com/java-json-tools/json-patch[JSON Patch] (https://datatracker.ietf.org/doc/html/rfc6902[RFC 6902]). |
| |
| Maven users will need to add the following dependency to |
| their `pom.xml` for this component: |
| |
| [source,xml] |
| ------------------------------------------------------------ |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-json-patch</artifactId> |
| <version>x.x.x</version> |
| <!-- use the same version as your Camel core version --> |
| </dependency> |
| ------------------------------------------------------------ |
| |
| |
| == URI format |
| |
| ----------------------- |
| json-patch:resourceUri[?options] |
| ----------------------- |
| |
| Where *specName* is the classpath-local URI of the specification to |
| invoke; or the complete URL of the remote specification |
| (eg: \file://folder/myfile.vm). |
| |
| |
| // component options: START |
| include::partial$component-configure-options.adoc[] |
| include::partial$component-endpoint-options.adoc[] |
| include::partial$component-endpoint-headers.adoc[] |
| // component options: END |
| |
| |
| include::spring-boot:partial$starter.adoc[] |