Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Spring JSON Serialization

How can I debug in a Spring Boot with Spring Web project how REST endpoint payload data are serialized/deserialized into JSON?

I am unsure which framework for serialization is used (Jackson, Jersey, RestEasy, ...) is used, and if so which instance? I suspect several Jackson instances being active. Any ideas where to hook in for breakpoints or what to enable for debug logging?

like image 844
JRA_TLL Avatar asked Sep 18 '26 12:09

JRA_TLL


1 Answers

org.springframework.http.converter.AbstractGenericHttpMessageConverter<T>#write is a method you want to put a breakpoint in in case your application is using Jackson.

like image 79
JRA_TLL Avatar answered Sep 20 '26 06:09

JRA_TLL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!