users@jersey.java.net

[Jersey] Re: jackson json mapping issue

From: suchitha koneru <suchi.koneru_at_gmail.com>
Date: Thu, 28 Jun 2012 14:46:57 -0700

Thanks a Ton Tatu for pointing out the error. I am new to JSON and
Unfortunately I do not have a handle on what comes in , now I undertand
why it is failing. Thanks again , appreciate it.

On Thu, Jun 28, 2012 at 2:35 PM, Tatu Saloranta <tsaloranta_at_gmail.com>wrote:

> On Thu, Jun 28, 2012 at 1:33 PM, suchitha koneru <suchi.koneru_at_gmail.com>
> wrote:
> > Thanks Tatu for the suggestion. I followed your advice and tried using
> the
> > jackson's object mapper explicitly to deserialize the json String ,
> outside
> > of jersey
> >
> > The following is the json string
>
> And the problem is here:
>
> > {"code":"BN2","name":"proctor and gamble","description":"PG retailer
> >
> record","retailerGroup":null,"supportedCurrencies":[],"retailerCountries":[{"country":
>
>
> ^^^
>
> where value is a JSON array. But SupportedCurrencies is a POJO, and
> thus must have something of form:
>
> { "currency": [ ... ] }
>
> so whatever is producing incoming JSON is producing incompatible JSON.
>
> -+ Tatu +-
>