0 Replies Latest reply: Sep 30, 2010 3:54 AM by luo zengbin RSS

    i got a trouble when i using jackson-provider.

    luo zengbin Newbie

      i got a trouble when i using jackson-provider.

       

      -------java source

      @XmlRootElement(name="person")

      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"

         }

      }