users@jersey.java.net

Jackson provider and Maps

From: Nick Parfene <nick_at_tmro.net>
Date: Thu, 4 Jun 2009 15:04:16 +1200

Hi all,
I am trying to get JSON Natural returned to my client and it all goes well
until I attempt to send back a HashMap<String, String>

The problem I have is that only one entry is returned. It is basically the
last element of the HashMap.
I was wondering if this is a known issue?

If I don't use natural it's all good: it works fine (I get all my entries
returned) for Mapped and Mapped_Jettison...

I am using Jackson 0.9.4 since the 1.0.0 release is no longer compatible
with jersey 1.0.3 (the setFeature method is now final...).

Any advice would be much appreciated...

Cheers, Nick

p.s. I also had a look at the XML produced by my resource but that is fine.
All 31 entries of my map are there...