On Thu, Apr 22, 2010 at 6:26 PM, Rob - <skyscrapper666_at_hotmail.com> wrote:
> 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> ?
Depends on exactly what you give, but for simple maps something like:
{"A":"A", "C":"C" }
if you had root-level map with 2 entries.
-+ Tatu +-