java - @type in JSON response -
i have generic class:
@xmlseealso({/*my classes here*/}) @xmlrootelement public class response<t> implements serializable{ /*fields*/}
when json response returns server, comes @type information in it. want remove response. appreciated.
response looks following:
{"response":{"@type":"mytype","email":"abc@abc.com","firstname":"a","id":"3","lastname":"b","password":"12345","username":"user"}}
i hope not jackson or jersey bug.
this shows because response
class annotated @jsontypeinfo
. if don't want can remove annotation, although bear in mind not have information type returning.
Comments
Post a Comment