Tagged articles
6 articles
Page 1 of 1
JavaScript
JavaScript
Dec 8, 2025 · Frontend Development

Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives

The article explains the hidden pitfalls of using JSON.parse(JSON.stringify(obj)) for deep cloning in JavaScript, such as circular references, loss of special types, prototype chain, and collection handling, and introduces the native structuredClone API as a more reliable solution.

JSONJavaScriptcircular reference
0 likes · 5 min read
Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives
Java High-Performance Architecture
Java High-Performance Architecture
May 24, 2024 · Backend Development

Fastjson Pitfalls: Date Formatting Glitch and Circular Reference Chaos Explained

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.

Date FormattingJavaVersion Compatibility
0 likes · 11 min read
Fastjson Pitfalls: Date Formatting Glitch and Circular Reference Chaos Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 17, 2023 · Backend Development

Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot

The article examines how Spring Boot handles circular reference serialization with Jackson and Fastjson, demonstrates the role of @ControllerAdvice for global exception capture, explains why Jackson may emit both 200 and 500 responses, and provides practical solutions using annotations and configuration.

BackendJacksonSpring Boot
0 likes · 18 min read
Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot
Java Backend Technology
Java Backend Technology
May 25, 2023 · Backend Development

Why FastJson’s Date Formatting Fails on Linux and How to Fix It

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.

circular referencedateformatfastjson
0 likes · 11 min read
Why FastJson’s Date Formatting Fails on Linux and How to Fix It
Beike Product & Technology
Beike Product & Technology
Nov 5, 2021 · Mobile Development

Practical Guide to Detecting Circular References in iOS Applications

This article explains the fundamentals of iOS memory management, describes common memory‑leak scenarios such as circular references, introduces detection tools like MLeaksFinder and FBRetainCycleDetector, and provides concrete code examples and best‑practice techniques for preventing and fixing retain cycles in production apps.

FBRetainCycleDetectorMLeaksFindercircular reference
0 likes · 14 min read
Practical Guide to Detecting Circular References in iOS Applications