Tagged articles
29 articles
Page 1 of 1
Code Ape Tech Column
Code Ape Tech Column
Jan 16, 2026 · Backend Development

Master JSONPath in Spring Boot: Simplify Complex JSON Extraction

JSONPath offers a concise, XPath‑like syntax for extracting data from complex JSON structures, and this guide shows how to integrate it into Spring Boot, compare FastJSON, Jackson, and Gson implementations, and provides practical code examples, advanced configurations, and selection advice for Java projects.

GsonJacksonJava
0 likes · 13 min read
Master JSONPath in Spring Boot: Simplify Complex JSON Extraction
Code Ape Tech Column
Code Ape Tech Column
Aug 28, 2025 · Backend Development

Why and How to Replace Fastjson with Gson in Large Java Projects

This article explains why fastjson is being abandoned due to frequent security vulnerabilities, compares fastjson, Jackson, and Gson, and provides practical migration strategies, code examples, performance considerations, and common pitfalls to help teams safely switch to Gson in enterprise Java applications.

GsonSecurityfastjson
0 likes · 18 min read
Why and How to Replace Fastjson with Gson in Large Java Projects
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
Java Tech Enthusiast
Java Tech Enthusiast
Jan 5, 2025 · Backend Development

Six Common JSON Parsing Methods in Java

Java developers can parse JSON using six popular approaches—Jackson for high‑performance, annotation‑driven serialization; Gson for a lightweight, easy‑to‑use API; FastJSON for speed; JsonPath for XPath‑style nested extraction; org.json for simple utility; or manual parsing for full control—each suited to different performance and complexity needs.

GsonJSONJackson
0 likes · 9 min read
Six Common JSON Parsing Methods in Java
Code Ape Tech Column
Code Ape Tech Column
May 17, 2024 · Backend Development

Migrating from Fastjson to Gson: Practical Guide, Pitfalls and Solutions

This article documents a month‑long effort to replace Fastjson with Gson in Java projects, analyzing security vulnerabilities, comparing performance and features of Fastjson, Jackson and Gson, and providing detailed migration steps, code examples, and solutions to common issues such as date handling, SpringBoot integration, Swagger compatibility and numeric type conversion.

GsonJSONSecurity
0 likes · 19 min read
Migrating from Fastjson to Gson: Practical Guide, Pitfalls and Solutions
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
Sohu Tech Products
Sohu Tech Products
Jan 24, 2024 · Mobile Development

How to Fix FastJson Parsing Errors in Kotlin Android Apps

This article analyzes why FastJson, Gson, and Kotlinx‑serialization encounter crashes or incorrect handling when parsing Kotlin data classes in Android, explains the root causes such as missing no‑arg constructors and null‑safety issues, and provides concrete code fixes, ProGuard rules, and a unified wrapper API for reliable JSON processing.

AndroidGsonKotlin
0 likes · 20 min read
How to Fix FastJson Parsing Errors in Kotlin Android Apps
Su San Talks Tech
Su San Talks Tech
Aug 6, 2023 · Backend Development

Why Adding Fastjson to a SpringBoot Agent Breaks Class Loading

A Java developer added fastjson to a SkyWalking agent for JSON conversion, causing class‑loading conflicts in a SpringBoot 2 application; the article analyzes the root cause, demonstrates debugging steps, explains the parent‑delegation mechanism, and presents solutions using Maven shade relocation or switching to Gson, with practical lessons for avoiding similar issues.

Dependency ConflictGsonJava
0 likes · 14 min read
Why Adding Fastjson to a SpringBoot Agent Breaks Class Loading
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Aug 2, 2023 · Backend Development

Why Fastjson Breaks SpringBoot Agents and How to Resolve the ClassLoader Conflict

This article analyzes how adding Fastjson to a SpringBoot agent causes classloader conflicts that prevent GenericHttpMessageConverter from loading, explains the underlying parent‑delegation mechanism, and presents solutions such as using Maven Shade to rename packages or switching to a lightweight JSON library like Gson.

Dependency ConflictGsonJava
0 likes · 16 min read
Why Fastjson Breaks SpringBoot Agents and How to Resolve the ClassLoader Conflict
Java Architect Essentials
Java Architect Essentials
Feb 21, 2023 · Backend Development

Performance Benchmark of Common Java JSON Libraries Using JMH

This article benchmarks the serialization and deserialization performance of four popular Java JSON libraries—Gson, Fastjson, Jackson, and Json‑lib—using JMH, analyzes the results across different operation counts, and provides guidance on selecting the most suitable library for high‑performance applications.

GsonJMHJSON
0 likes · 11 min read
Performance Benchmark of Common Java JSON Libraries Using JMH
Code Ape Tech Column
Code Ape Tech Column
Dec 21, 2022 · Backend Development

Migrating from Fastjson to Gson: Lessons Learned and Best Practices

This article documents a month‑long effort to replace Fastjson with Gson in Java projects, analyzing security vulnerabilities, comparing performance and features of Fastjson, Jackson, and Gson, and providing detailed migration steps, code examples, and pitfalls to avoid for large‑scale backend systems.

GsonJSONfastjson
0 likes · 21 min read
Migrating from Fastjson to Gson: Lessons Learned and Best Practices
Java Architect Essentials
Java Architect Essentials
Oct 17, 2022 · Backend Development

Performance Benchmark of Common Java JSON Libraries (Gson, FastJson, Jackson, Json-lib)

This article presents a JMH‑based performance comparison of four popular Java JSON libraries—Gson, FastJson, Jackson, and Json‑lib—covering their Maven dependencies, utility wrappers, a realistic Person model, serialization and deserialization benchmarks, and analysis of the results to guide library selection.

GsonJSONJackson
0 likes · 15 min read
Performance Benchmark of Common Java JSON Libraries (Gson, FastJson, Jackson, Json-lib)
Selected Java Interview Questions
Selected Java Interview Questions
Dec 18, 2021 · Backend Development

Deep Copy in Java: Multiple Implementation Methods

This article explains the difference between shallow and deep copying in Java and provides five practical techniques—including constructor copying, overriding clone(), Apache Commons Lang serialization, Gson serialization, and Jackson serialization—complete with code examples and test cases to demonstrate each approach.

GsonJacksonclone
0 likes · 8 min read
Deep Copy in Java: Multiple Implementation Methods
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 11, 2021 · Fundamentals

Understanding Java's transient Keyword: Definition, Conventions, Usage Scenarios, and Serialization Behavior

This article explains the transient keyword in Java, covering its definition, the rules that govern its use, practical examples with Gson serialization, the impact on object fields during serialization, and how Externalizable can override its behavior, providing a comprehensive guide for developers.

ExternalizableGsonJava
0 likes · 10 min read
Understanding Java's transient Keyword: Definition, Conventions, Usage Scenarios, and Serialization Behavior
Code Ape Tech Column
Code Ape Tech Column
Jan 4, 2021 · Backend Development

Is FastJson Really Faster? Benchmark vs Jackson and Gson

This article evaluates Alibaba's FastJson library by comparing its parsing speed, Maven popularity, and issue count against Jackson and Gson, presenting benchmark results, highlighting a critical bug in timestamp handling, and concluding with a recommendation to prefer Jackson for most Java projects.

GsonJacksonJava performance
0 likes · 7 min read
Is FastJson Really Faster? Benchmark vs Jackson and Gson
Programmer DD
Programmer DD
Dec 24, 2020 · Fundamentals

How to Retrieve Generic Types at Runtime with Gson’s TypeToken

This article explains Java's generic type erasure, why it exists, and demonstrates how to use Gson's TypeToken and reflection APIs to obtain actual generic type information at runtime, complete with code examples and a detailed walkthrough of the underlying mechanism.

GenericsGsonJava
0 likes · 7 min read
How to Retrieve Generic Types at Runtime with Gson’s TypeToken
Java Backend Technology
Java Backend Technology
Jun 6, 2020 · Backend Development

Is FastJson Really Faster? Benchmark vs Jackson and Gson

This article examines FastJson’s claim of speed by benchmarking it against Jackson and Gson, analyzes test results, discusses its popularity, highlights critical bugs in its timestamp handling, and ultimately recommends abandoning FastJson in favor of more widely adopted JSON libraries.

GsonJacksonJava
0 likes · 8 min read
Is FastJson Really Faster? Benchmark vs Jackson and Gson
Top Architect
Top Architect
May 6, 2020 · Backend Development

FastJson: Speed Claims, Popularity, and Why It Should Be Abandoned

The article examines Alibaba's FastJson library, presenting performance tests against Jackson and Gson, revealing modest speed gains, low adoption in Maven, numerous unresolved issues, and ultimately recommending developers switch to Jackson for JSON processing in Java projects.

GsonJSONJackson
0 likes · 5 min read
FastJson: Speed Claims, Popularity, and Why It Should Be Abandoned
Programmer DD
Programmer DD
Sep 12, 2019 · Backend Development

Master JSON Serialization in Java: A Deep Dive into Gson

This article walks through why developers should replace FastJson with Gson, explains Gson's core features, demonstrates basic and advanced serialization and deserialization—including handling arrays, collections, generic types, custom serializers, and annotations—while providing complete code examples and best‑practice tips.

DeserializationGsonGsonBuilder
0 likes · 20 min read
Master JSON Serialization in Java: A Deep Dive into Gson
Java Captain
Java Captain
Jun 27, 2019 · Backend Development

Performance Benchmark of Common Java JSON Libraries Using JMH

Using JMH, this article benchmarks the serialization and deserialization performance of four popular Java JSON libraries—Gson, Fastjson, Jackson, and Json-lib—by testing various scenarios with a complex Person model, analyzing results, and providing guidance on selecting the most suitable library for high‑performance applications.

GsonJMHJSON
0 likes · 13 min read
Performance Benchmark of Common Java JSON Libraries Using JMH
Meituan Technology Team
Meituan Technology Team
Jan 5, 2018 · Mobile Development

Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson

The article shows that replacing reflection‑heavy Gson with lightweight JSONObject for manual serialization and a compile‑time annotation‑processor generated library called Mson can cut JSON parsing and writing time to about one‑tenth, while maintaining compatibility and eliminating ProGuard rules for performance‑critical Android apps.

AndroidAnnotationProcessorGson
0 likes · 13 min read
Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson