[jboss-user] [JBoss Web Services] - [RESTEasy] got a trouble when i using jackson-provider.

luo zengbin do-not-reply at jboss.com
Thu Sep 30 07:29:08 EDT 2010

luo zengbin [http://community.jboss.org/people/luozengbin] created the discussion

"[RESTEasy] got a trouble when i using jackson-provider."

To view the discussion, visit: http://community.jboss.org/message/564242#564242

i got a trouble when i using jackson-provider.

-------java source
public class Person{
      String name;
      int age;
      //@XmlElement  getter setter

-------json result
    "name": "AA",
     "age": "100"

It's missing root level property "person" in the json result.
can you give me same suggestion to get the json result like this.

-------wanted json result
*  "person"{*
      "name": "AA",
       "age": "100"
*   }*

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100930/33f1570f/attachment-0001.html 

More information about the jboss-user mailing list