[keycloak-user] org.keycloak.util.JsonSerialization does not seem to support @JsonTypeInfo

Stian Thorgersen stian at redhat.com
Fri Dec 5 03:27:22 EST 2014


I wouldn't recommend using org.keycloak.util.JsonSerialization for your own application. It's an internal utility class and can be changed/removed at any point.

----- Original Message -----
> From: "Dean Peterson" <peterson.dean at gmail.com>
> To: keycloak-user at lists.jboss.org
> Sent: Friday, 5 December, 2014 5:48:32 AM
> Subject: [keycloak-user] org.keycloak.util.JsonSerialization does not seem	to support @JsonTypeInfo
> 
> I receive the following error only when using
> org.keycloak.util.JsonSerialization to deserialize:
> Unrecognized field "class" (Class com.abecorn.model.Item), not marked as
> ignorable
> 
> Here is the setup:
> 
> @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = As.PROPERTY, property =
> "class")
> @JsonIgnoreProperties(ignoreUnknown = true)
> @Entity
> @Indexed
> public class Item {
> .
> .
> .
> 
> 
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list