What arguments are you passing to @JsonTypeInfo?
On Mon, Jan 27, 2014 at 6:57 AM, Jon Finanger <j...@finanger.no> wrote: > I'm trying to figure out how to get the android client to automatically > convert the representation into the correct Objecttype without using > mapper.convertValue(...) > > When looking at the representation sent from the server i see that the > type information is not present. > [{"name":"site1","siteOwnerId":1,"siteId":1,"location":"vega1","lastOnline":null,"port":6194,"bindAddress":"","alarmFlag":false,"onlineStatus":true}... > > so no wonder it cant auto-convert. I've added @JsonTypeInfo to the remote > interface and @Get("json") on the method, but see no effect of that. > > When choosing xml as the representation the typeinfo is present. > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3072127 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3072145