You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/06/24 08:02:25 UTC
camel git commit: Added camel-johnzon docs to Gitbook
Repository: camel
Updated Branches:
refs/heads/master 7fea5338e -> b85871ea4
Added camel-johnzon 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/b85871ea
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b85871ea
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b85871ea
Branch: refs/heads/master
Commit: b85871ea49a9838815eb35df06ce6ad8e81e7da1
Parents: 7fea533
Author: Andrea Cosentino <an...@gmail.com>
Authored: Fri Jun 24 10:00:20 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Fri Jun 24 10:00:20 2016 +0200
----------------------------------------------------------------------
.../camel-johnzon/src/main/docs/johnzon.adoc | 36 ++++++++++++++++++++
docs/user-manual/en/SUMMARY.md | 1 +
docs/user-manual/en/json.adoc | 33 ++++++++++++++++++
3 files changed, 70 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/b85871ea/components/camel-johnzon/src/main/docs/johnzon.adoc
----------------------------------------------------------------------
diff --git a/components/camel-johnzon/src/main/docs/johnzon.adoc b/components/camel-johnzon/src/main/docs/johnzon.adoc
new file mode 100644
index 0000000..8662c83
--- /dev/null
+++ b/components/camel-johnzon/src/main/docs/johnzon.adoc
@@ -0,0 +1,36 @@
+[[Johnzon-Johnzon]]
+Johnzon
+~~~~~~~
+
+*Available as of Camel 2.18*
+
+Johnzon is a link:data-format.html[Data Format] which uses the
+http://johnzon.apache.org/[Johnzon Library]
+
+[source,java]
+-------------------------------
+from("activemq:My.Queue").
+ marshal().json(JsonLibrary.Johnzon).
+ to("mqseries:Another.Queue");
+-------------------------------
+
+[[JacksonXML-Dependencies]]
+Dependencies
+^^^^^^^^^^^^
+
+To use Johnzon 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-johnzon</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/b85871ea/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 509d650..66c5969 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -321,6 +321,7 @@
* [Jackson XML](jackson-xml.adoc)
* [Jaxb](jaxb.adoc)
* [Jibx](jibx.adoc)
+ * [Johnzon](johnzon.adoc)
* [Lzf](lzf.adoc)
* [Syslog](syslog.adoc)
* [SOAP](soap.adoc)
http://git-wip-us.apache.org/repos/asf/camel/blob/b85871ea/docs/user-manual/en/json.adoc
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/json.adoc b/docs/user-manual/en/json.adoc
index 9a985c6..db98123 100644
--- a/docs/user-manual/en/json.adoc
+++ b/docs/user-manual/en/json.adoc
@@ -12,6 +12,7 @@ popular JSON libraries:
http://jettison.codehaus.org/[Jettsion]
* The https://github.com/FasterXML/jackson[Jackson library]
* *Camel 2.10:* The http://code.google.com/p/google-gson/[GSon library]
+* *Camel 2.18:* The http://johnzon.apache.org/[Johnzon library]
Every library requires adding the special camel component (see
"Dependency..." paragraphs further down). By default Camel uses the
@@ -60,6 +61,18 @@ from("activemq:My.Queue").
to("mqseries:Another.Queue");
------------------------------------------------------------
+[[JSON-UsingJSONdataformatwiththeJohnzonlibrary]]
+Using JSON data format with the Johnzon library
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+[source,java]
+------------------------------------------------------------
+// lets turn Object messages into json then send to MQSeries
+from("activemq:My.Queue").
+ marshal().json(JsonLibrary.Johnzon).
+ to("mqseries:Another.Queue");
+------------------------------------------------------------
+
[[JSON-UsingJSONinSpringDSL]]
Using JSON in Spring DSL
++++++++++++++++++++++++
@@ -601,3 +614,23 @@ link:download.html[the download page for the latest versions]).
<version>x.x.x</version>
</dependency>
-------------------------------------
+
+[[JSON-DependenciesforJohnzon]]
+Dependencies for Johnzon
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+To use JSON in your camel routes you need to add the a 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-johnzon</artifactId>
+ <version>x.x.x</version>
+</dependency>
+-------------------------------------