java - Jackson value conversion with lazy serialization -


i want convert 1 java type using objectmapper.convertvalue(). source object of specific type, destination type varies. performance reasons, want avoid serializing source fields not defined on destination type. know deserialization can configured ignore fields, far understand, source fields still evaluated in intermediate serialization. there way create serializer evaluate fields existing on destination type?

to put more generally, when converting between java types, can schema of destination type used determine serialization strategy source type?

no. say, can make deserializer part ignore properties not recognize, there no functionality trimming content serialized.

but sure actual performance issue? intermediate form used (tokenbuffer) simple sequence of leaf-values, , since strings exists, overhead should quite low. there no full serialization json involved, regardless.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -