So I actually just had this exact issue again... The problem for me this time 
was again my mistake... See if you have the same issue... I was hand crafting 
my json using a working xml sample trying to 'prove' the json side of things 
worked... I was doing something like this:

<MyObject>
  <name>clint</name>
</MyObject>

The mistake I made was when I translated this to JSON manually - I came up with 
what seems very natural:

{ "MyObject": { "name":"clint" } }

My issue was that in JSON this is incorrect... The corallary JSON object 
actually looks like THIS:

{ "name":"clint" }

The "MyObject" is implied in JSON-land by the wrapper braces...

Could that be your issue as well?

Cheers,
-Clint



-----Original Message-----
From: jbright [mailto:[email protected]] 
Sent: Wednesday, January 23, 2013 12:13 PM
To: [email protected]
Subject: Re: JacksonJsonProvider not working with CXF Jax-RS

How did you find out that Jackson gives 
>  "Unrecognized property exception" 

Is that this exception you found in my JsonDemo project 

Also I already tried with JacksonJaxbJsonProvider, but no luck.
John


On Jan 23, 2013, at 5:32 PM, "Sergey Beryozkin-5 [via CXF]" 
<[email protected]> wrote:

> On 22/01/13 11:57, jbright wrote:
> 
> > Thanks for investigating Sergey, perhaps I didn't have luck to get 
> > that resolved.  XML request works well and gives proper response, 
> > but JSON request give a '500 Internal server error'
> > 
> > Attached are the maven project and the requests (xml and json 
> > formats) i used for testing.
> > 
> > JsonDemo.zip<http://cxf.547215.n5.nabble.com/file/n5721987/JsonDemo.
> > zip> 
> > requests.zip<http://cxf.547215.n5.nabble.com/file/n5721987/requests.
> > zip>
> >
> Jackson reports "Unrecognized property exception" so once again it is 
> not a CXF issue - you need to configure it somehow to get it mapped 
> properly or may be use JacksonJaxbJsonProvider - I don't know exactly 
> what needs to be done but I'm quite certain it is possible with 
> Jackson
> - please investigate further
> 
> Cheers, Sergey
> 
> > 
> > 
> > 
> > --
> > View this message in context: 
> > http://cxf.547215.n5.nabble.com/JacksonJsonProvider-not-working-with
> > -CXF-Jax-RS-tp5721842p5721987.html
> > Sent from the cxf-user mailing list archive at Nabble.com. 
> 
> 
> --
> Sergey Beryozkin
> 
> Talend Community Coders
> http://coders.talend.com/
> 
> Blog: http://sberyozkin.blogspot.com
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://cxf.547215.n5.nabble.com/JacksonJsonProvider-not-working-with-C
> XF-Jax-RS-tp5721842p5722062.html To unsubscribe from 
> JacksonJsonProvider not working with CXF Jax-RS, click here.
> NAML




--
View this message in context: 
http://cxf.547215.n5.nabble.com/JacksonJsonProvider-not-working-with-CXF-Jax-RS-tp5721842p5722090.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to