0 Replies Latest reply on Sep 30, 2010 3:54 AM by luozengbin

    i got a trouble when i using jackson-provider.

    luozengbin

      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"

         }

      }