You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2017/11/16 01:11:55 UTC

juneau-website git commit: Update examples.

Repository: juneau-website
Updated Branches:
  refs/heads/asf-site a2acc5fe7 -> 41f956f0a


Update examples.

Project: http://git-wip-us.apache.org/repos/asf/juneau-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/juneau-website/commit/41f956f0
Tree: http://git-wip-us.apache.org/repos/asf/juneau-website/tree/41f956f0
Diff: http://git-wip-us.apache.org/repos/asf/juneau-website/diff/41f956f0

Branch: refs/heads/asf-site
Commit: 41f956f0a748850d603f699f386527b40c0e2b57
Parents: a2acc5f
Author: JamesBognar <ja...@apache.org>
Authored: Wed Nov 15 20:11:52 2017 -0500
Committer: JamesBognar <ja...@apache.org>
Committed: Wed Nov 15 20:11:52 2017 -0500

----------------------------------------------------------------------
 content/marshall.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/juneau-website/blob/41f956f0/content/marshall.html
----------------------------------------------------------------------
diff --git a/content/marshall.html b/content/marshall.html
index cb9659f..03a3abc 100644
--- a/content/marshall.html
+++ b/content/marshall.html
@@ -330,8 +330,8 @@
 	<jc>// Construct a new serializer group with configuration parameters that get applied to all serializers.</jc>
 	SerializerGroup sg = SerializerGroup.<jsm>create</jsm>()
 		.append(JsonSerializer.<jk>class</jk>, UrlEncodingSerializer.<jk>class</jk>);
-		.ws()   <jc>// or .setUseWhitespace(true)</jc>
-		.pojoSwaps(CalendarSwap.ISO8601DT.<jk>class</jk>)
+		.ws()   <jc>// or .setUseWhitespace(true) or .property(SERIALIZER_useWhitespace, true)</jc>
+		.pojoSwaps(CalendarSwap.ISO8601DT.<jk>class</jk>) <jc>// or .property(BEAN_pojoSwaps_add, CalendarSwap.ISO8601DT.class)</jc>
 		.build();
 
 	<jc>// Find the appropriate serializer by Accept type and serialize our POJO to the specified writer.</jc>
@@ -342,7 +342,7 @@
 	<jc>// Construct a new parser group with configuration parameters that get applied to all parsers.</jc>
 	ParserGroup pg = ParserGroup.<jsm>create</jsm>()
 		.append(JsonParser.<jk>class</jk>, UrlEncodingParser.<jk>class</jk>);
- 		.pojoSwaps(CalendarSwap.ISO8601DT.<jk>class</jk>)
+ 		.pojoSwaps(CalendarSwap.ISO8601DT.<jk>class</jk>) <jc>// or .property(BEAN_pojoSwaps_add, CalendarSwap.ISO8601DT.class)</jc>
  		.build();
 
 	Person p = pg.getParser(<js>"text/json"</js>).parse(myReader, Person.<jk>class</jk>);