Upgrading 25.1.1 breaks .Adding extra escape characters to JSON payload

Post upgrading to vaadin 25.1.1.
My endpoints have started adding escaping in the payload. Looks like its first stringifying and then deserializing leading to breakage of existing working functionality. i was using Vaadin 25.0.4 before with Jackson 3.1.x,Spring boot 4.0.x

"{\"authorities\":[\"OIDC_USER\",\"ROLE_ADMINS\"],\"email\":\"admin2@groovymaven.dev\",\"firstname\":null,\"id\":\"982813687163537752995569298169283862\",\"lastname\":null,\"name\":\"d19b6560-3021-708b-be33-758681dc4104\",\"setupComplete\":false,\"username\":null}"

Am i missing some configuration or settings?

Can you a bit more context.

How does the endpoint and the dto look like