-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
The handy valueToTree shortcut method on ObjectMapper does not appear to support pojos with the @JsonRawValue annotation:
java.lang.IllegalArgumentException: Called operation not supported for TokenBuffer
Looking at the TokenBuffer implementation of JsonGenerator used internally for this operation, I find that all the writeRaw methods are unimplemented.
This annotation works as expected in a full round-trip conversion (pojo->JSON->JsonNode). The valueToTree method is described as "Functionally same" so I would expect it to support this annotation (and all others) as well.
Metadata
Metadata
Assignees
Labels
No labels