You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2019/12/08 20:39:50 UTC

[camel] branch master updated: User Manual - JSON section: Replace usage of Context#getProperties (was removed in Camel 3) with Context#getGlobalOptions.

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new caafa43  User Manual - JSON section: Replace usage of Context#getProperties (was removed in Camel 3) with Context#getGlobalOptions.
caafa43 is described below

commit caafa43ee94cfb98f1c2fccdbc3abac1b4c2dc1e
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Dec 8 21:38:06 2019 +0100

    User Manual - JSON section: Replace usage of Context#getProperties (was removed in Camel 3) with Context#getGlobalOptions.
---
 docs/user-manual/modules/ROOT/pages/json.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/json.adoc b/docs/user-manual/modules/ROOT/pages/json.adoc
index 90d29c7..2a2e8bb 100644
--- a/docs/user-manual/modules/ROOT/pages/json.adoc
+++ b/docs/user-manual/modules/ROOT/pages/json.adoc
@@ -521,9 +521,9 @@ as shown below:
 [source,java]
 -----------------------------------------------------------------------------------------------------------------------
 // enable Jackson json type converter
-getContext().getProperties().put("CamelJacksonEnableTypeConverter", "true");
+getContext().getGlobalOptions().put("CamelJacksonEnableTypeConverter", "true");
 // allow Jackson json to convert to pojo types also (by default jackson only converts to String and other simple types)
-getContext().getProperties().put("CamelJacksonTypeConverterToPojo", "true");
+getContext().getGlobalOptions().put("CamelJacksonTypeConverterToPojo", "true");
 -----------------------------------------------------------------------------------------------------------------------
 
 The `camel-jackson` type converter integrates with JAXB which means you