FasterXML / FasterXML/jackson-databind
Add `convertValue()` method to `ObjectReader`
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 1.5k
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 28
Description
`ObjectMapper` has a convenient `convertValue` method which is not currently propagated to `ObjectReader`. Adding this method would be useful in situations where one needs to add custom attributes for a deserialization operation -which is only possible with `ObjectReader` since there is no readWithAttributes option for the `ObjectMapper`. Thus,currently one must first convert the the source object to a `JsonNode`, then pass that node to the `Object Reader`. If I understand correctly, the extra step would be unnecessarily slow because the fast `TokenBuffer` conversion method cannot be used.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.