json - Jackson handle 3rd party java type -


i providing ability deserialize list of entities returned jpa, list type returned jpa delegatingresultlist has no default constructor.

the implementation uses proxy beans aop intercept interfaces extend set of interfaces provide basic queries.

i can fix checking in aspect if object type delegatingresultlist , copy arraylist, don't want have every single aspect i'm covering.

i using default typing set property so:

objectmapper.enabledefaulttyping(defaulttyping.non_final, as.property); 

the json in serialized format value wrapper looks this:

{"@class":"my.wrapper.valuewrapper", "response": ["org.apache.openjpa.kernel.delegatingresultlist", [{"@class":"my.entity.taxinfoentity","taxtype":"01","taxval":"0.07"}, ..."]]"} 

i have read using mixins , custom deserializers, i've tried doesn't seem work.

i have tried using mixin, have no reference resultlist property it's not saved in json. not mention doesn't kick in when it's trying deserialize.

i have tried using custom deserializer again, never kicks in when deserializing. correct in assuming mixin , custom deserializer kick in if try deserialize passing class type?

this of course read it's cached value. intention convert arraylist instead. how achieve using jackson?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -