We have a huge json payload. When deserializing it with 2.8.11, it works just fine. When using 2.9.8, one of the embedded objects is null. What is the best way to debug the deserializer? I dont see any exceptions in the log. If I go through the debugger, it takes forever and I never reach the end. Please help. Thanks.
Check the logging options for the deserializer and see if you can raise them to a detailed debug level. It's likely that with fine enough logging you may actually be able to see the elements by name as they are processed and that will help you spot any irregularities in processing.
Another option, assuming you're using an open-source deserializer is to download the source (make sure it's the EXACT same version!) of the deserializer and set a breakpoint on the place where the faulty element should be processed. Then set up a conditional breakpoint. That will slow processing down, but you won't have to manually step through every intermediate item.
Conditional breakpoints in a JavaIDE are java expressions, so the logic will be something like "tag.text.equals("november")".
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
posted 5 months ago
Thank you so much. I will try the options out.
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
create, convert, edit or print DOC and DOCX in Java