@XmlRootElement
public static class SimpleJaxbBean
{
public String name = "Franz";
public String surname = "Kafka";
}
XML output: public static class SimpleJaxbBean
{
public String name = "Franz";
public String surname = "Kafka";
}
<simpleJaxbBean>
<name>Franz</name>
<surname>Kafka</surname>
</simpleJaxbBean>
Badgerfish format: <name>Franz</name>
<surname>Kafka</surname>
</simpleJaxbBean>
{"simpleJaxbBean":{"name":{"$":"Franz"}, "surname":{"$":"Kafka"}}}
{"simpleJaxbBean":{"name":"Franz", "surname":"Kafka"}}
{"name":"Franz", "surname":"Kafka"}