@ Override @ SuppressWarnings ( "unchecked" ) protected T convert ( JsonNode data ) { // The (T) cast prevents the commandline javac from choking "no unique maximal instance" return ( T ) this . mapper . convertValue ( data , this . resultType ) ; }
Use Jackson to map from JsonNode to the type