Hi,
I am using RestEasy to marchal entities to JSON. That works okay but somehow every thing is represented as a String. e.g.
@XmlRootElement(name="TestObject")
public class TestObject {
private Long value;
public Long getValue(){
return value;
}
}
Instead of creating something like: {TestObject:{value:1234}}
It creates {TestObject:{value:"1234"}}
(Please note the " " around the number)
So the long value is converted into a String. How can I avoid that?
I've asked on the Jackson forum which RestEasy is using for the JSON marchaling but they said it is probably caused by going Java->XML->JSON. There doesn't seem to be a RestEasy forum and on the Seam forum no one could answer my question.
Does anyone else have the same problem?
Regards