Selected Java Interview Questions
Nov 4, 2022 · Backend Development
FastJSON Serialization Mechanism: Why isChinaName() Is Invoked and How to Control Method Inclusion
This article analyzes a FastJSON serialization issue caused by an unexpected call to isChinaName(), explains the underlying JavaBeanSerializer workflow, demonstrates how ASM-generated serializers work, and proposes coding conventions using @JSONField to prevent unwanted method execution during JSON conversion.
JSONFieldJava BeanJava Serialization
0 likes · 8 min read