Repository: camel Updated Branches: refs/heads/master a18826714 -> 67053cfc6
Added camel-gson docs to Gitbook Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/04ba80a6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/04ba80a6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/04ba80a6 Branch: refs/heads/master Commit: 04ba80a6dcb4ce8cf574497cc1d44bacc3315755 Parents: a188267 Author: Andrea Cosentino <[email protected]> Authored: Thu Jun 30 11:30:12 2016 +0200 Committer: Andrea Cosentino <[email protected]> Committed: Thu Jun 30 11:30:12 2016 +0200 ---------------------------------------------------------------------- components/camel-gson/src/main/docs/gson.adoc | 36 ++++++++++++++++++++++ docs/user-manual/en/SUMMARY.md | 1 + 2 files changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/04ba80a6/components/camel-gson/src/main/docs/gson.adoc ---------------------------------------------------------------------- diff --git a/components/camel-gson/src/main/docs/gson.adoc b/components/camel-gson/src/main/docs/gson.adoc new file mode 100644 index 0000000..a0c942c --- /dev/null +++ b/components/camel-gson/src/main/docs/gson.adoc @@ -0,0 +1,36 @@ +[[Gson-Gson]] +Gson +~~~~ + +*Available as of Camel 2.18* + +Gson is a link:data-format.html[Data Format] which uses the +https://github.com/google/gson[Gson Library] + +[source,java] +------------------------------- +from("activemq:My.Queue"). + marshal().json(JsonLibrary.Gson). + to("mqseries:Another.Queue"); +------------------------------- + +[[Gson-Dependencies]] +Dependencies +^^^^^^^^^^^^ + +To use Gson in your camel routes you need to add the dependency +on *camel-johnzon* which implements this data format. + +If you use maven you could just add the following to your pom.xml, +substituting the version number for the latest & greatest release (see +link:download.html[the download page for the latest versions]). + +[source,xml] +---------------------------------------------------------- +<dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-gson</artifactId> + <version>x.x.x</version> + <!-- use the same version as your Camel core version --> +</dependency> +---------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/04ba80a6/docs/user-manual/en/SUMMARY.md ---------------------------------------------------------------------- diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md index 91d1fd1..5b34ecd 100644 --- a/docs/user-manual/en/SUMMARY.md +++ b/docs/user-manual/en/SUMMARY.md @@ -171,6 +171,7 @@ * [Grape](grape.adoc) * [Groovy](groovy.adoc) * [Groovy DSL](groovy-dsl.adoc) + * [Gson](gson.adoc) * [Guava Eventbus](guava-eventbus.adoc) * [Guice](guice.adoc) * [Hawtdb](hawtdb.adoc)
