Hi,
StackOverflow question posted here 
<https://stackoverflow.com/q/79757166/80280>
Cleaning up some code that is currently manually parsing various JSON 
objects. It's all been pretty straightforward with one exception. I have 1 
object left that has a property that is a string containing JSON. I need to 
parse that string. I think the correct solution is to create a custom 
deserializer for that. My refactoring has already caused much more changes 
than what the team is comfortable with, so I am trying to skip the custom 
deserializer.
My alternative is to try and use `@JacksonInject` and to have 
`ObjectMapper` injected. Assuming that my Spring Boot application is 
properly auto-configured with no customization to the `ObjectMapper`, it 
should work out-of--the-box, correct?
I am getting errors both at runtime and in my tests (using `@JsonTest` and 
`JacksonTester`). In both cases, it appears that the system is trying to 
deserialize the `ObjectMapper` from the JSON string and is complaining 
about Conflicting setters like:
"Conflicting setter definitions for property "defaultPropertyInclusion": 
com.fasterxml.jackson.databind.ObjectMapper#setDefaultPropertyInclusion(com.fasterxml.jackson.annotation.JsonInclude$Value)
 
vs 
com.fasterxml.jackson.databind.ObjectMapper#setDefaultPropertyInclusion(com.fasterxml.jackson.annotation.JsonInclude$Include)
"
Thanks in advance for any help.

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jackson-user/0765dbfc-3f54-4b1a-ad43-8a4081691380n%40googlegroups.com.

Reply via email to