Tag

Jackson

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 31, 2025 · Backend Development

Mastering Jackson ObjectMapper in Spring Boot 3: Real-World Cases & Performance Tips

This article explores Jackson's ObjectMapper in Spring Boot 3, covering basic serialization/deserialization, converting between objects, JSON strings, JsonNode, and collections, custom serializers/deserializers, handling unknown fields, and performance tuning with the Afterburner module and JMH benchmarks.

JSONJacksonJava
0 likes · 12 min read
Mastering Jackson ObjectMapper in Spring Boot 3: Real-World Cases & Performance Tips
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 29, 2025 · Backend Development

Mastering @JsonFormat in Spring Boot 3: Advanced Date & Enum Handling

This article demonstrates how to use Spring Boot 3's @JsonFormat annotation for precise date, time, and enum serialization, covering configuration via properties, annotation attributes, locale settings, shape options, lenient parsing, and case‑insensitive deserialization with practical code examples.

@JsonFormatJacksonJava
0 likes · 8 min read
Mastering @JsonFormat in Spring Boot 3: Advanced Date & Enum Handling
Code Ape Tech Column
Code Ape Tech Column
Apr 9, 2025 · Backend Development

Using @JsonView in Spring to Control JSON Serialization of Fields

This article explains how the Jackson @JsonView annotation can be used in Spring back‑end projects to selectively serialize object fields, reduce bandwidth, improve security, and handle nested associations by defining view interfaces and applying them on entity fields and controller methods.

BackendJacksonJava
0 likes · 8 min read
Using @JsonView in Spring to Control JSON Serialization of Fields
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 7, 2025 · Backend Development

Mastering @JsonView in Spring Boot 3: Dynamic JSON Serialization Techniques

This article explains how to use Jackson's @JsonView annotation in Spring Boot 3 to flexibly control JSON output for different REST scenarios, covering basic usage, programmatic view selection, view‑based MVC responses, deserialization restrictions, and default‑inclusion configuration with practical code examples.

JacksonJavaJsonView
0 likes · 8 min read
Mastering @JsonView in Spring Boot 3: Dynamic JSON Serialization Techniques
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
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 7, 2025 · Backend Development

Master Dynamic JSON in Spring Boot 3: 4 Practical Techniques

This article explains why Spring Boot 3 uses Jackson for JSON handling, describes four effective methods—JsonNode, Map, @JsonAnySetter, and custom deserializer—to process dynamic JSON properties, and promotes a continuously updated collection of over 90 Spring Boot case studies with source code.

Custom DeserializerDynamic JSONJackson
0 likes · 9 min read
Master Dynamic JSON in Spring Boot 3: 4 Practical Techniques
macrozheng
macrozheng
Jan 10, 2025 · Backend Development

6 Best Java JSON Parsing Libraries Compared: Jackson, Gson, FastJSON, and More

This article compares six popular Java JSON parsing solutions—Jackson, Gson, FastJSON, JsonPath, org.json, and manual parsing—detailing their features, code examples, advanced options, and pros and cons to help developers choose the right tool for various scenarios.

GsonJSONJackson
0 likes · 13 min read
6 Best Java JSON Parsing Libraries Compared: Jackson, Gson, FastJSON, and More
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
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 24, 2024 · Backend Development

Master Custom JSON Serialization in Spring Boot 3 with @JsonComponent

This tutorial demonstrates how to programmatically customize JSON serialization and deserialization in Spring Boot by implementing JsonSerializer, JsonDeserializer, JsonObjectSerializer, and JsonObjectDeserializer, complete with code examples, test endpoints, and important usage notes.

JSONJacksonJava
0 likes · 7 min read
Master Custom JSON Serialization in Spring Boot 3 with @JsonComponent
Architect's Guide
Architect's Guide
Dec 23, 2024 · Backend Development

Implementing API Request and Response Encryption/Decryption with Spring Boot and ControllerAdvice

This article walks through the design and implementation of symmetric AES encryption for both GET and POST API endpoints in a Spring Boot application, covering requirement analysis, data model definition, custom RequestBodyAdvice and ResponseBodyAdvice, serialization challenges with FastJSON vs Jackson, and final configuration to ensure consistent JSON output across encrypted and non‑encrypted responses.

AESAPI EncryptionBackend
0 likes · 12 min read
Implementing API Request and Response Encryption/Decryption with Spring Boot and ControllerAdvice
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 7, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains why consistent date formatting is crucial in Spring Boot APIs, outlines common scenarios such as front‑end data exchange, database storage and logging, and presents multiple server‑side and client‑side solutions—including SimpleDateFormat, DateTimeFormatter, global Jackson settings, annotations, custom converters, and timestamp output—complete with code examples.

DateTimeFormatterJacksonJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
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
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 4, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains various Spring Boot approaches for formatting dates in API responses, covering frontend JavaScript utilities, Java SimpleDateFormat and DateTimeFormatter, global Jackson settings, annotation‑based formatting, custom converters, ControllerAdvice initBinder, and timestamp output methods.

DateTimeFormatterJacksonJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Architecture Digest
Architecture Digest
Oct 16, 2024 · Backend Development

Implementing Request and Response Encryption in Spring Boot with ControllerAdvice

This article walks through the design and implementation of symmetric request/response encryption for a Spring Boot API, covering requirement analysis, data models, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to keep encrypted payloads consistent across Android, iOS, and H5 clients.

API EncryptionControllerAdviceJackson
0 likes · 12 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice
macrozheng
macrozheng
Sep 5, 2024 · Information Security

How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations

This article explains how to implement unified data desensitization in Java Spring Boot applications by creating custom annotations, enums, serializers, and utility methods that automatically mask personal information during JSON serialization, complete with code examples and test results.

JacksonJavaSensitive Data
0 likes · 13 min read
How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 22, 2024 · Backend Development

Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations

This tutorial explores Jackson's rich annotation set in Spring Boot 3.2.5, demonstrating how to serialize and deserialize JSON with built‑in annotations like @JsonAnyGetter, @JsonGetter, @JsonPropertyOrder, and @JsonIgnore, how to create custom annotations, and how to disable annotation processing for fine‑grained control.

AnnotationsCustom AnnotationJSON
0 likes · 13 min read
Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations
Java Tech Enthusiast
Java Tech Enthusiast
Aug 14, 2024 · Backend Development

Customizing JSON Serialization and Deserialization in Spring Boot

In Spring Boot you can customize JSON request and response handling by annotating fields with @JsonSerialize/@JsonDeserialize, registering a global ObjectMapper module, adding a PropertyEditor via @ControllerAdvice, creating a custom HttpMessageConverter, or using AOP interception, selecting the approach that matches your project’s complexity.

AOPJSONJackson
0 likes · 7 min read
Customizing JSON Serialization and Deserialization in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
Aug 11, 2024 · Information Security

Java Data Desensitization with Hutool and Custom Jackson Serializer

The article demonstrates how to mask sensitive Java backend data by using Hutool's DesensitizedUtil for common types and a custom @Desensitization annotation with a DesensitizationTypeEnum‑driven Jackson serializer (or Fastjson ValueFilter) to apply flexible masking rules during JSON serialization.

Data DesensitizationHutoolJackson
0 likes · 7 min read
Java Data Desensitization with Hutool and Custom Jackson Serializer
HelloTech
HelloTech
May 10, 2024 · Backend Development

Root Cause Analysis and Optimization of G1GC Pauses Caused by StringTable Growth in Java Services

The investigation revealed that G1GC pauses were caused by uncontrolled growth of the JVM StringTable, triggered by Jackson’s InternCache interning countless random JSON field names, and was mitigated by enlarging the young generation, disabling field‑name interning, tuning G1 parameters, and monitoring StringTable size.

G1GCGC TuningJSON interning
0 likes · 37 min read
Root Cause Analysis and Optimization of G1GC Pauses Caused by StringTable Growth in Java Services
Architect's Guide
Architect's Guide
May 10, 2024 · Backend Development

Implementing Request and Response Encryption in Spring Boot with ControllerAdvice and Jackson

This article demonstrates how to secure Spring Boot APIs by encrypting request and response bodies using custom ControllerAdvice, switching from FastJson to Jackson for proper enum and date serialization, and configuring ObjectMapper to produce consistent JSON output across encrypted and non‑encrypted endpoints.

API securityControllerAdviceEncryption
0 likes · 13 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice and Jackson