Add JsonPointer property deserialization support - #6161
Conversation
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
63392ea to
f86391a
Compare
CI failed: Build failure across all jobs caused by a missing import for `JsonPointer` in `JacksonAnnotationIntrospector.java`.OverviewA consistent build failure occurred across all 4 analyzed CI jobs due to a missing symbol FailuresMissing symbol
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|
It depends on FasterXML/jackson-annotations#358 until that's merged and the updated |
Summary
Adds databind support for deserializing POJO properties from nested JSON values selected with
@JsonPointer.References:
Example
Given:
{ "name": "Bob", "employee": { "details": { "departmentId": 123 } } }A property can be bound directly using:
Implementation
@JsonPointersupport toAnnotationIntrospector.JacksonAnnotationIntrospector.FAIL_ON_UNKNOWN_PROPERTIESis enabled.Initial scope
nulluses normal property null handling.Testing
Focused coverage includes:
null./mvnw -Dtest=JsonPointerDeserializationTest testResult: