Tagged articles
JSON Serialization
18 articles · Page 1 of 1
This article explains how Snowflake IDs exceeding JavaScript's MAX_SAFE_INTEGER (2^53-1) lose precision when parsed as JSON numbers, causing silent bugs like 'record not found', and recommends returning IDs as strings via Jackson's ToStringSerializer or a custom @JsonId annotation, while keeping numeric fields as numbers, aligning API contracts, OpenAPI specs, and frontend types.
API DesignIEEE 754JSON Serialization
0 likes · 21 min read

A backend query interface took 12 seconds despite a 300ms SQL query because it returned 100,000 records directly to the frontend, causing massive object creation, JSON serialization, memory spikes, and GC pressure; the fix involved pagination, DTO projections, separate export endpoints, and monitoring response size.
Async ExportDTO ProjectionGC Pressure
0 likes · 18 min read

This article introduces Apache Fory, a high-performance multi-language serialization framework, and demonstrates its integration with Spring Boot 3.5.0, showing up to 3x throughput improvement over Jackson in JSON benchmarks with code examples for binary, JSON, and row-format serialization.
Apache ForyJSON SerializationJava
0 likes · 12 min read

This article answers ten Spring Boot interview questions, covering why @Configuration classes are CGLIB‑proxied, common startup‑time bottlenecks and diagnostics, graceful shutdown mechanics, execution timing of ApplicationContextInitializer vs ApplicationRunner, circular‑dependency handling, health‑endpoint aggregation, distributed‑transaction strategies, Kubernetes probes, JSON serialization safeguards, and migration challenges to Jakarta EE 9+.
CGLIBJSON SerializationSpring Boot
0 likes · 15 min read

The article reveals how default Jackson JSON serialization can become a hidden CPU bottleneck in high‑traffic Spring Boot services, explains why full entity objects inflate serialization time, and presents practical optimizations such as @JsonView, custom ObjectMapper settings, hand‑written serializers, and alternative data formats to dramatically cut latency and cloud costs.
DTOJSON SerializationJackson
0 likes · 13 min read

Discover how replacing FastAPI’s default json module with the high‑performance ORJSON serializer can slash response latency, reduce CPU usage, and boost throughput up to five times—all with a single line of code and without altering existing endpoints.
FastAPIJSON SerializationPython
0 likes · 4 min read

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

This article provides a comprehensive walkthrough of FastJSON 2.0.31's serialization and deserialization process, covering its core architecture, step‑by‑step execution flow, common pitfalls such as getter misuse and circular references, and practical guidance on annotations and SerializerFeature options.
ASMAnnotationsJSON Serialization
0 likes · 20 min read

The author recounts switching from Gson to Fastjson, encountering a date‑formatting bug that only appears on Linux due to an outdated Fastjson version, explores a circular‑reference $ref issue, and shares debugging steps, GitHub issue references, and practical fixes for reliable JSON serialization.
BackendDebuggingFastjson
0 likes · 12 min read

The author recounts a debugging saga with Alibaba's Fastjson library, detailing how a global date‑format setting failed on Linux, how an outdated Fastjson version caused the issue, and how circular‑reference detection with $ref can surprise developers, offering practical solutions and version recommendations.
FastjsonJSON SerializationJava
0 likes · 11 min read

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.
FastjsonGsonJSON Serialization
0 likes · 7 min read

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.
FastjsonJSON SerializationJava
0 likes · 10 min read

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.
FastjsonJSON SerializationJava
0 likes · 9 min read

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.
DebuggingFastjsonJSON Serialization
0 likes · 11 min read

This article recounts the author's real‑world debugging of FastJson, covering unexpected date‑format priority issues on Linux, version mismatches, circular‑reference detection quirks, and practical tips such as disabling specific SerializerFeatures, while also reflecting on the library’s maintenance and migration to FastJson2.
FastjsonJSON Serializationcircular reference
0 likes · 11 min read

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.
HttpMessageConvertersJSON SerializationSpring Boot
0 likes · 8 min read

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 SerializationJavafastjson2
0 likes · 8 min read

This article explains how calling LOGGER.info with JSON serialization in a production environment set to WARN can waste CPU cycles, cause latency spikes, and even bring down high‑concurrency systems, and it offers a simple guard‑clause solution.
JSON SerializationJavaSLF4J
0 likes · 5 min read
