Tag

JSONField

1 views collected around this technical thread.

Top Architect
Top Architect
Jun 13, 2024 · Backend Development

FastJSON Serialization Mechanics: Why isChinaName() Executes and How to Control Serialized Output

This article analyzes a FastJSON serialization issue where a newly added log line triggered unexpected method calls, explains the underlying ASM‑generated serializer and JavaBeanSerializer logic, demonstrates code examples, outlines common pitfalls such as @JSONField annotations and getter patterns, and proposes best‑practice conventions for reliable backend serialization.

ASMDebuggingJSONField
0 likes · 9 min read
FastJSON Serialization Mechanics: Why isChinaName() Executes and How to Control Serialized Output
Architecture Digest
Architecture Digest
Apr 28, 2024 · Backend Development

Understanding FastJSON Serialization: Why isChinaName() Is Invoked and How to Control Serialized Methods

This article analyzes a FastJSON serialization issue where a getter method is unexpectedly called, explains the underlying ASM‑generated serializer mechanism, details which methods FastJSON invokes during serialization, and proposes using @JSONField(serialize = false) to explicitly exclude methods from the serialization process.

ASMJSONFieldJava
0 likes · 8 min read
Understanding FastJSON Serialization: Why isChinaName() Is Invoked and How to Control Serialized Methods
Selected Java Interview Questions
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
FastJSON Serialization Mechanism: Why isChinaName() Is Invoked and How to Control Method Inclusion