Tag

JSON serialization

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 5, 2024 · Backend Development

Solve Long Precision Loss in Spring Boot 3 with Jackson and Custom Annotations

This article demonstrates how to handle Java Long precision loss in Spring Boot 3 front‑end displays, configures Jackson to serialize Long as String, uses @JsonValue for single‑property serialization, and creates custom annotations with a SensitiveSerializer for data masking, complete with code examples and screenshots.

Custom AnnotationJSON serializationJackson
0 likes · 9 min read
Solve Long Precision Loss in Spring Boot 3 with Jackson and Custom Annotations
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.

GsonJSON serializationJackson
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java
Code Ape Tech Column
Code Ape Tech Column
Jul 19, 2023 · Backend Development

FastJson Issues: Date Format Priority, $ref Circular Reference, and Lessons Learned

The article recounts a developer's experience with FastJson, detailing a date‑format configuration bug caused by an outdated library version, a $ref circular‑reference serialization issue, the debugging steps taken, and broader observations about FastJson's maintenance and feature defaults.

JSON serializationJavabackend debugging
0 likes · 10 min read
FastJson Issues: Date Format Priority, $ref Circular Reference, and Lessons Learned
Top Architect
Top Architect
Jul 18, 2023 · Backend Development

Fastjson Boolean Property Naming Issue and How to Resolve It

This article explains why Fastjson incorrectly renames boolean fields prefixed with "is" during serialization, demonstrates the problem with sample Java code, analyzes the underlying reflection logic, and provides two practical solutions: following Alibaba Java guidelines or using @JSONField annotations.

Backend DevelopmentJSON serializationJava
0 likes · 9 min read
Fastjson Boolean Property Naming Issue and How to Resolve It
Top Architect
Top Architect
May 31, 2023 · Backend Development

FastJson Date Formatting and Circular Reference Issues: A Debugging Journey

The article recounts a senior architect's investigation into FastJson's date formatting bug and circular reference handling, detailing version mismatches, GitHub issue tracking, feature flag usage, and lessons for backend developers on avoiding hidden serialization pitfalls.

JSON serializationJavabackend
0 likes · 11 min read
FastJson Date Formatting and Circular Reference Issues: A Debugging Journey
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 25, 2022 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12

This guide explains how Spring Boot 2.4.12 automatically configures Spring MVC components such as view resolvers, converters, and message handlers, and shows how to customize them via WebMvcConfigurer, WebMvcRegistrations, HttpMessageConverters, and @JsonComponent, including code examples for full control over the Web MVC setup.

Auto‑ConfigurationHttpMessageConvertersJSON serialization
0 likes · 8 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12
Java Architecture Diary
Java Architecture Diary
May 27, 2022 · Backend Development

Why Upgrade to fastjson2? Performance Boosts and Safer AutoType Handling

This article examines fastjson2’s design improvements over fastjson1, highlighting its safer AutoType mechanism, performance enhancements, migration strategies—including compatibility mode and new APIs—and provides practical code examples for configuring serializers, updating Maven dependencies, and adapting Spring converters.

JSON serializationJavaPerformance
0 likes · 8 min read
Why Upgrade to fastjson2? Performance Boosts and Safer AutoType Handling