Deserializing JSON with special characters into a string Deserializing JSON with special characters into a string json json

Deserializing JSON with special characters into a string


Remove OBJECT_MAPPER.enableDefaultTyping(); and it will work fine. This method is anyway deprecated.

In case you want to read automatic polymorphic types, use activateDefaultTyping(PolymorphicTypeValidator ptv).