public class OAEmbeddedJsonStringDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<String>
This allows a Json object or array to be stored in a Java String property, without being escaped.
Example: A department that has employees array, and we want to load into Java Dept, but have the Dept.employees just loaded into a String as json.
NOTE: this is not needed in OAObjects, only POJOs.
OAJacksonSerializer and Deserializer have this functionality built in, and dont require these annotations.
Note: for Pojos, this requires using @JsonRawValue for the serialization so that it wont escape the String during serialization.
| Constructor and Description |
|---|
OAEmbeddedJsonStringDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
String |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic String deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JacksonException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<String>IOExceptioncom.fasterxml.jackson.core.JacksonExceptionCopyright © 1999–2025 ViaOA. All rights reserved.