You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this getting merge ?? with spring 7 and spring boot 4 keep facing the issue as
Caused by: tools.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of com.fasterxml.jackson.databind.JsonNode (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
@zapek just to be clear - ur solution is not a pure jackson solution (which would be ideal as I'm on Spring Boot) - you still need 2 new dependencies (jackson-datatype-jakarta-jsonp - jackson bridge onto JSONP provider and the JSONP provider ie joy-classic/parsson etc) so really swapping a library for 2 new ones. 3 if u include jakarta.json-api.
I did use ur instructions as a guide and got a Jackson 2 equivalent working but really it's in preparation for upgrading to SB4/Jackson 3.
I’ve created a library that follows this API but brings in support for Jackson 3. It’s designed as a drop-in replacement for anyone needing to upgrade. I'm currently running it in production for a high-volume payment gateway, so performance and reliability are baked in. Check out the docs here: https://guisseppe.gitlab.io/json-utils/getting-started
Activity
kz282 commentedon Dec 15, 2025
Please see #165
christophejan commentedon Dec 28, 2025
Hello,
I was looking for a Jackson 3 compatible version and found that Jackson provides its own support of JsonPatch and JsonMergePatch since Jackson 2.12.2.
See :
Even diff seems supported through Json#createDiff and Json#createMergeDiff.
I think I will try to switch to this Jackson module for JsonPatch and JsonMergePatch.
anandjaisy commentedon Jan 6, 2026
Is this getting merge ?? with spring 7 and spring boot 4 keep facing the issue as
Caused by: tools.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance ofcom.fasterxml.jackson.databind.JsonNode(no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type informationzapek commentedon Jan 6, 2026
Thanks for the suggestion, it actually works! Here's what I did with Spring Boot 4 (don't forget to use Jackson 3 only, not Jackson 2):
Add dependencies:
To get a patch:
To apply the patch:
No need for java-json-tools.
stephenmontgomery commentedon Mar 1, 2026
@zapek just to be clear - ur solution is not a pure jackson solution (which would be ideal as I'm on Spring Boot) - you still need 2 new dependencies (jackson-datatype-jakarta-jsonp - jackson bridge onto JSONP provider and the JSONP provider ie joy-classic/parsson etc) so really swapping a library for 2 new ones. 3 if u include jakarta.json-api.
I did use ur instructions as a guide and got a Jackson 2 equivalent working but really it's in preparation for upgrading to SB4/Jackson 3.
Maybe https://flipkart-incubator.github.io/zjsonpatch/ is a best drop in replacement for java-json-tools?
edmundackah commentedon Mar 14, 2026
@zapek @kz282 @stephenmontgomery @pbartoszek @christophejan
I’ve created a library that follows this API but brings in support for Jackson 3. It’s designed as a drop-in replacement for anyone needing to upgrade. I'm currently running it in production for a high-volume payment gateway, so performance and reliability are baked in. Check out the docs here: https://guisseppe.gitlab.io/json-utils/getting-started