users@jersey.java.net

RE: [Jersey] Jersey, Json, WCF and Maps

From: Rob - <skyscrapper666_at_hotmail.com>
Date: Fri, 23 Apr 2010 11:56:19 +1030

Please see in-line....

 

You say:


 {Map:{"entry",{"key":"key1","value":"value1"},"entry",{"key":"key2","value":"value2"},"entry","key":"key3","value":"value3"}.....}}


  This is not a valid JSON, the Map is not quoted, then after the first "entry", there should be a colon instead of the comma, etc.

 

-->> Yes, a typo from my side. The actual JSON is the following:

 

[{"map":{"entry":{"key":"A","value":"A"},"entry":{"key":"C","value":"C"}}}]

 

What would the output from Jackson be like for a Map<String,String> ?

 

                                               
_________________________________________________________________
New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au
http://clk.atdmt.com/NMN/go/206222968/direct/01/