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
REST API returning response for field with type Map<String, Optional<Object>> where Object comes from a jOOQ generated class and could be JSON/JSONB on certain occasions. Spring boot /Jackson wasn't able to serialize it to JSON response and returned the following mentioned error.
Also, @JsonRawValue annotation could not be added in a jOOQ generated class.
Generated POJOs could have the following annotations generated on their
JSON
andJSONB
properties:Where the
JSONDeserializer
class could be generated into the catalog:This would allow for serialising / deserialising
JSON
andJSONB
values using Jackson:The text was updated successfully, but these errors were encountered: