json - JAXB / Jackson handling arrays of long -
i'm writing jersey rest interface. i'm have code i'm trying create following json response , list of long been generated array of string (using jaxb , jackson)
the code looks :
@xmlelement(name = "visitorprofiles", required = false) private list<long> visitorprofiles; the json reponse looks
{ "visitorprofiles":["45"] } and correct json response should
{ "visitorprofiles":[45] } this i'm using json configuration
context = new jsonjaxbcontext(jsonconfiguration.natural().rootunwrapping(true).build(), jerseyresources.getjaxbclasses());
tried reproduce case no success, can't see reason happen unless natural context wasn't apply correctly class
Comments
Post a Comment