Tagged articles
7 articles
Page 1 of 1
macrozheng
macrozheng
Mar 31, 2025 · Backend Development

Why Using isSuccess Can Break JSON Serialization in Java and How to Fix It

This article explains how different Java boolean naming conventions affect JSON serialization across fastjson, Gson, and Jackson, demonstrates the resulting inconsistencies with code examples, and recommends using a plain "success" field with an isSuccess getter to ensure reliable cross‑library behavior.

GsonJSONJackson
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java and How to Fix It
macrozheng
macrozheng
Feb 22, 2024 · Backend Development

Why Using isSuccess Can Break JSON Serialization in Java

This article explains how different Java JSON libraries handle boolean getter naming, shows code examples of serialization results with fastjson, Gson, and Jackson, and recommends using a plain "success" field with an isSuccess() getter to avoid runtime bugs.

GsonJacksonJava
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java
Top Architect
Top Architect
Oct 11, 2021 · Backend Development

Why Using isXXX Naming for Boolean Fields in Java Is Discouraged: Guidelines and Examples

The article explains why naming Boolean fields with the isXXX pattern in Java is discouraged, illustrates correct and incorrect getter/setter conventions with code examples, discusses JavaBeans specifications and RPC serialization issues, and recommends using wrapper types for POJOs while keeping primitives for local variables.

JavaJavaBeansRPC
0 likes · 5 min read
Why Using isXXX Naming for Boolean Fields in Java Is Discouraged: Guidelines and Examples
Java Tech Enthusiast
Java Tech Enthusiast
Sep 22, 2021 · Backend Development

JavaBeans: Understanding and Usage in JSP

JavaBeans are Java classes that follow a standard interface with constructors, getters, and setters, supporting simple, indexed, bound, and constrained property types, and are used in JSP via the jsp:useBean and jsp:getProperty/jsp:setProperty tags to encapsulate components, manage scopes, and enable event‑driven property change notifications.

Backend DevelopmentJSPJava
0 likes · 5 min read
JavaBeans: Understanding and Usage in JSP