I'm trying to serialize JSON via JAXB using CXF. The problem is when the element to transform is a Object type.
@XmlElement(name = "Value")
protected Object value;
the result in JSON format is
"Value":{"@xsi.type":"xs:string","$":"LED"}}
Any idea how I do to transform in simple json format?
"Value":"LED" o r "Value":1