Tagged articles

Jackson

138 articles · Page 1 of 2
java1234
java1234
Aug 4, 2026 · Backend Development

Why Spring Boot Sticks with Jackson as Its Default JSON Library

The article explains why Spring Boot continues to use Jackson as its default JSON serializer, detailing the automatic ObjectMapper/JsonMapper creation, the HTTP message conversion process, Jackson’s balanced strengths, practical code samples, and how to switch to alternatives like Gson, JSON‑B, or Fastjson2.

Fastjson2GsonJackson
0 likes · 15 min read
Why Spring Boot Sticks with Jackson as Its Default JSON Library
Su San Talks Tech
Su San Talks Tech
Jul 20, 2026 · Backend Development

What’s New in Jackson 3? A Complete Migration Guide

This article explains the major breaking changes introduced in Jackson 3—including the JDK 17 baseline, package and groupId renames, immutable JsonMapper, unchecked exceptions, default configuration shifts, performance tweaks, and module consolidation—while providing step‑by‑step migration advice and a quick‑reference table for developers upgrading from Jackson 2.

JacksonMigrationSpring Boot
0 likes · 16 min read
What’s New in Jackson 3? A Complete Migration Guide
CodeNotes
CodeNotes
Jul 16, 2026 · Backend Development

Proper Enum Handling Across Query Params, Request Body, and Database in Spring Boot

The article demonstrates how Spring Boot can automatically convert strings to enums for query and path parameters, introduces a unified StringToEnumConverterFactory, configures Jackson for case‑insensitive enum deserialization in @RequestBody, and uses a JPA AttributeConverter to persist enums, removing repetitive manual conversion code.

ConverterFactoryEnumJPA
0 likes · 8 min read
Proper Enum Handling Across Query Params, Request Body, and Database in Spring Boot
CodeNotes
CodeNotes
Jul 14, 2026 · Backend Development

4 Common @RequestBody Pitfalls That Can Crash Your Spring Apps

The article explains how @RequestBody binds JSON via HttpMessageConverter using Jackson, then details four frequent issues—empty bodies, extra or unknown fields, date‑format mismatches, and deep nesting causing circular serialization—and provides concrete code‑level solutions such as validation, global exception handling, Jackson configuration, and DTO usage.

DTOJacksonJavaTimeModule
0 likes · 10 min read
4 Common @RequestBody Pitfalls That Can Crash Your Spring Apps
Java Backend Technology
Java Backend Technology
Jul 9, 2026 · Cloud Native

Quarkus 3.37 Beats Spring Boot: 50× Faster Startup and 70% Less Memory

Quarkus 3.37, released on June 24, 2026, introduces experimental JLink support, a full Hibernate ORM 7.4 upgrade, a reflection‑free Jackson serializer, AI‑native extensions, and numerous bug fixes, delivering up to 50‑fold faster startup, 70% lower memory usage, and measurable performance gains for Java cloud‑native applications.

AICloud NativeHibernate
0 likes · 11 min read
Quarkus 3.37 Beats Spring Boot: 50× Faster Startup and 70% Less Memory
Java Tech Enthusiast
Java Tech Enthusiast
Jun 30, 2026 · Backend Development

Spring Boot 4.1.0 Released: Official gRPC Support Boosts Java Microservices

Spring Boot 4.1.0 introduces official gRPC support, unified Jackson configuration, HTTP client SSRF protection, enhanced observability with OpenTelemetry, and flexible Log4j file‑rotation strategies, while the roadmap confirms a one‑year lifecycle for each version and signals the shift to the 4.x era for Java microservices.

JacksonSSRFSpring Boot
0 likes · 8 min read
Spring Boot 4.1.0 Released: Official gRPC Support Boosts Java Microservices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 25, 2026 · Backend Development

Four Ways to Fix Spring Boot JSON Serialization ‘no Session’ Error for Associated Entities

This article presents four practical solutions for the Spring Boot 3.5.0 “Could not write JSON: failed to lazily initialize a collection… no Session” error that occurs when serializing bidirectional one-to-many relationships, covering @JsonIgnore, JPQL fetch joins, enabling OpenEntityManagerInView, and using the Jackson Hibernate6 module, with code examples and results.

JPAJacksonSpring Boot
0 likes · 7 min read
Four Ways to Fix Spring Boot JSON Serialization ‘no Session’ Error for Associated Entities
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 24, 2026 · Backend Development

Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×

A four‑month investigation revealed that Jackson’s default object‑mapper consumed over 60% of CPU time during order‑submission requests, causing 900 ms latency; switching to Jackson’s streaming API reduced average response time from 912 ms to 28 ms, cut GC pauses, and increased throughput eight‑fold, while introducing readability and validation trade‑offs.

JSON ParsingJacksonSpring Boot
0 likes · 8 min read
Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 23, 2026 · Backend Development

Stop Writing Manual if‑else: Master Spring Boot Partial Updates with @JsonMerge

This article explains how to avoid null‑overwrites during partial updates in Spring Boot by using Jackson's @JsonMerge annotation, demonstrates handling of nested objects and null values with @JsonSetter, and shows how to create a custom @JsonMergePatch argument resolver for clean controller code.

@JsonMergeArgument ResolverJackson
0 likes · 9 min read
Stop Writing Manual if‑else: Master Spring Boot Partial Updates with @JsonMerge
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 20, 2026 · Backend Development

Four Advanced Spring Boot Solutions to Eliminate @JsonIgnore and Resolve JSON Recursion

When bidirectional JPA entities cause infinite JSON recursion in Spring Boot, the article explains why @JsonIgnore is suboptimal and demonstrates four advanced alternatives—@JsonIgnoreProperties, @JsonManagedReference/@JsonBackReference, the Jackson Hibernate module, and @JsonIdentityInfo—each with code samples and runtime results.

@JsonIgnorePropertiesHibernateJPA
0 likes · 7 min read
Four Advanced Spring Boot Solutions to Eliminate @JsonIgnore and Resolve JSON Recursion
Java Tech Workshop
Java Tech Workshop
Jun 20, 2026 · Backend Development

How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points

The article explains why front‑end date and enum parameters often cause parsing errors in Spring applications, describes the two independent conversion mechanisms in Spring MVC and Jackson, and provides a step‑by‑step guide to building global custom converters that unify date formats and enum mappings across the whole project.

Custom ConverterEnum MappingJackson
0 likes · 17 min read
How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 8, 2026 · Backend Development

Zero-Code Changes: Dynamic Field Masking in Spring Boot

This guide shows how to mask sensitive fields like phone numbers and ID cards in Spring Boot responses without modifying business code, using a global ResponseBodyAdvice, JsonPath rules defined in application.yml, and optional custom @Masking annotation for fine-grained control.

Custom AnnotationJacksonJsonPath
0 likes · 9 min read
Zero-Code Changes: Dynamic Field Masking in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 5, 2026 · Backend Development

5 Practical Ways to Handle Dynamic JSON Requests in Spring Boot with Validation

This article explores five practical approaches for processing dynamic JSON payloads in Spring Boot 3.5—using Map, JsonNode, ObjectNode, @JsonAnySetter, and Jackson polymorphic deserialization—detailing code examples, advantages, drawbacks, suitable scenarios, and how to apply runtime validation with networknt’s JSON Schema validator.

Dynamic JSONJSON Schema ValidationJackson
0 likes · 11 min read
5 Practical Ways to Handle Dynamic JSON Requests in Spring Boot with Validation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 29, 2026 · Backend Development

Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot

This article shows how to replace static DTO definitions with a zero‑intrusion, high‑concurrency solution for column‑level data masking in Spring Boot 3.5.0 by leveraging Jackson's serialization pipeline, a global Mixin, custom annotations, a contextual serializer, and a ResponseBodyAdvice that respects request‑scoped permissions.

DTOJacksonResponseBodyAdvice
0 likes · 10 min read
Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot
Java Tech Workshop
Java Tech Workshop
Apr 24, 2026 · Backend Development

SpringBoot Sensitive Data Desensitization via Jackson Serialization (Zero‑Intrusion, High‑Performance)

This article explains how to protect user privacy in SpringBoot applications by masking sensitive fields such as phone numbers, ID cards, emails, bank cards, names, and addresses during JSON serialization using a custom Jackson serializer and annotation, offering a zero‑intrusion, high‑performance solution compared to other approaches.

AnnotationJacksonSpringBoot
0 likes · 16 min read
SpringBoot Sensitive Data Desensitization via Jackson Serialization (Zero‑Intrusion, High‑Performance)
Cloud Architecture
Cloud Architecture
Mar 21, 2026 · Backend Development

Mastering Spring Boot 3 Jackson Annotations: 25+ Core Annotations and Production-Ready Practices

This comprehensive guide walks you through why Jackson annotation tweaks are essential, presents a full annotation hierarchy, demonstrates over 25 core annotations with concrete code examples, covers polymorphic handling, special scenarios, global Spring Boot 3 configuration, production best practices, common pitfalls, performance tips, an end‑to‑end e‑commerce example, and testing strategies, all aimed at mastering JSON serialization in Spring Boot.

JacksonSpring Bootannotations
0 likes · 28 min read
Mastering Spring Boot 3 Jackson Annotations: 25+ Core Annotations and Production-Ready Practices
LuTiao Programming
LuTiao Programming
Mar 1, 2026 · Backend Development

How to Elegantly Handle Dynamic Request Bodies in Spring Boot

This article explains why using a fixed DTO for a constantly changing /orders endpoint is problematic, compares simple Map and JsonNode approaches, and presents a robust polymorphic @JsonTypeInfo solution that provides type safety, IDE support, and easy extensibility.

Dynamic JSONJacksonJsonNode
0 likes · 9 min read
How to Elegantly Handle Dynamic Request Bodies in Spring Boot
Coder Trainee
Coder Trainee
Feb 20, 2026 · Backend Development

Why Lombok-generated getters cause JSON fields to become lowercase

The article explains how Lombok’s @Data annotation generates getter and setter methods with a lowercase first letter for camel‑case fields, causing Jackson to serialize JSON property names in all lowercase, and offers three fixes: write methods manually, use @JsonProperty, or rename fields to avoid lower‑upper patterns.

JacksonLombokcamelCase
0 likes · 4 min read
Why Lombok-generated getters cause JSON fields to become lowercase
Architecture Digest
Architecture Digest
Feb 5, 2026 · Backend Development

What Surprising Changes Await You When Upgrading to Jackson 3 in Spring Boot 4?

Upgrading to Spring Boot 4 brings Jackson 3, which introduces four major breaking changes—package reorganization, replacement of ObjectMapper with JsonMapper, a shift to ISO‑8601 date serialization, and the removal of checked exceptions—each explained with code examples, migration tips, and the rationale behind the design.

Dependency ManagementJacksonMigration
0 likes · 6 min read
What Surprising Changes Await You When Upgrading to Jackson 3 in Spring Boot 4?
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.

FastjsonGsonJackson
0 likes · 13 min read
Master JSONPath in Spring Boot: Simplify Complex JSON Extraction
Architecture Digest
Architecture Digest
Jan 8, 2026 · Backend Development

Why Do Jackson 2 and 3 Coexist? Uncover the 4 Breaking Changes in Jackson 3

After upgrading to Spring Boot 4, the article explains why both Jackson 2 and Jackson 3 appear together, outlines the four major breaking changes—including package reorganization, the shift from ObjectMapper to JsonMapper, new default date serialization, and the removal of checked exceptions—and offers migration tips.

JacksonMigrationSpring Boot
0 likes · 6 min read
Why Do Jackson 2 and 3 Coexist? Uncover the 4 Breaking Changes in Jackson 3
IT Services Circle
IT Services Circle
Jan 8, 2026 · Backend Development

How to Seamlessly Upgrade to Spring Boot 4.0: A Step‑by‑Step Guide

This guide walks you through upgrading a Spring Boot project from 3.x to 4.0, covering Gradle version bump, dependency version catalog updates, starter module changes, Jackson 3 migration, Redisson API adjustments, and verification steps, while highlighting common pitfalls and official upgrade paths.

JacksonMigrationSpring AI
0 likes · 13 min read
How to Seamlessly Upgrade to Spring Boot 4.0: A Step‑by‑Step Guide
Senior Xiao Ying
Senior Xiao Ying
Dec 23, 2025 · Backend Development

Master Bidirectional JSON↔CSV Conversion in Spring Boot Quickly

This guide explains how to perform bidirectional conversion between JSON and CSV in Spring Boot using lightweight open‑source libraries such as Jackson, Apache Commons CSV or OpenCSV, as well as commercial APIs, covering serialization, deserialization, custom handling of nested objects, and provides complete code examples.

Apache Commons CSVCSVJackson
0 likes · 6 min read
Master Bidirectional JSON↔CSV Conversion in Spring Boot Quickly
Senior Xiao Ying
Senior Xiao Ying
Nov 26, 2025 · Backend Development

Simple Field-Level Permission Control in Spring Boot 3.x

Field-level permission control provides fine-grained data access in Spring Boot applications, allowing read/write restrictions per object field; the article explains core concepts, compares annotation, AOP, serializer, and database approaches, and presents a complete implementation using Spring Boot 3.1, Java 17, Jackson, and Spring Security.

AOPField PermissionJackson
0 likes · 16 min read
Simple Field-Level Permission Control in Spring Boot 3.x
Programmer XiaoFu
Programmer XiaoFu
Nov 10, 2025 · Backend Development

Why Ignoring SpringBoot’s Default Settings Guarantees Trouble

SpringBoot’s out‑of‑the‑box defaults—such as Tomcat’s tiny connection pool, HikariCP’s 10‑thread limit, lazy‑loaded JPA entities, system‑timezone JSON serialization, un‑rolled Logback files, unlimited in‑memory cache, exposed Actuator endpoints, tiny file‑upload limits, per‑task thread creation for @Async, and unlimited transaction timeouts—can silently cripple production systems, so each must be reviewed and tuned for real‑world workloads.

ActuatorCaffeineHikariCP
0 likes · 11 min read
Why Ignoring SpringBoot’s Default Settings Guarantees Trouble
Java Companion
Java Companion
Nov 8, 2025 · Backend Development

How Jackson Views Let One DTO Replace Many and End DTO Explosion

The article explains how Jackson Views can consolidate multiple DTO classes into a single DTO by using view interfaces and @JsonView annotations, dramatically reducing code duplication, simplifying maintenance, and providing flexible field selection for different API scenarios.

@JsonViewDTOJackson
0 likes · 11 min read
How Jackson Views Let One DTO Replace Many and End DTO Explosion
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 2, 2025 · Backend Development

Master Advanced JSON Handling in Spring Boot 3 with Jackson

This article walks through advanced Jackson techniques for JSON processing in Spring Boot 3, including path queries, multi‑value extraction, view control, dynamic property handling, object unwrapping, and raw JSON insertion, each illustrated with concise JUnit test examples and expected outputs.

JacksonSpring Bootbackend development
0 likes · 10 min read
Master Advanced JSON Handling in Spring Boot 3 with Jackson
Programmer DD
Programmer DD
Oct 23, 2025 · Backend Development

Why Jackson Serialization Can Drain Your CPU and How to Fix It

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.

DTOJacksonSpring Boot
0 likes · 13 min read
Why Jackson Serialization Can Drain Your CPU and How to Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2025 · Backend Development

Master JSON Control in Spring Boot 3: Practical Guide to @JsonProperty, @JsonView & Mix‑ins

This article explains how to fine‑tune JSON responses in Spring Boot 3 using Jackson annotations such as @JsonProperty, @JsonFormat, @JsonView, and Mix‑ins, covering field hiding, renaming, null handling, date/number formatting, view‑based serialization, and custom ObjectMapper configuration with code examples.

JacksonMixinREST API
0 likes · 9 min read
Master JSON Control in Spring Boot 3: Practical Guide to @JsonProperty, @JsonView & Mix‑ins
Java Tech Enthusiast
Java Tech Enthusiast
Oct 12, 2025 · Backend Development

Master JSON Field Adaptation in Spring Boot: 3 Powerful Techniques

This article explains why JSON field mismatches cause backend failures in microservice architectures and presents three robust Spring Boot solutions—using a Map, Jackson's JsonNode, and @JsonAnySetter/@JsonAnyGetter—to flexibly and safely adapt dynamic JSON structures.

Dynamic MappingJacksonbackend development
0 likes · 7 min read
Master JSON Field Adaptation in Spring Boot: 3 Powerful Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2025 · Backend Development

Master Advanced Jackson Techniques in Spring Boot 3: From Files to Streaming

This article dives into advanced Jackson capabilities for Spring Boot 3, covering file, stream, byte array, URL, typed Map, JsonNode, ObjectNode, and streaming JsonParser techniques, each illustrated with concise code examples to help developers build robust, flexible JSON handling in backend services.

JacksonObjectMapperbackend development
0 likes · 9 min read
Master Advanced Jackson Techniques in Spring Boot 3: From Files to Streaming
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 19, 2025 · Backend Development

Unlock Advanced JSON Control in Spring Boot 3 with Rare Jackson Annotations

This article demonstrates how to use four lesser‑known Jackson annotations—@JsonAppend, @JsonNaming, @JsonPropertyDescription, and @JsonPOJOBuilder—to extend JSON serialization, customize property naming, enrich JSON Schema documentation, and deserialize immutable objects within Spring Boot 3 applications.

JacksonSerializationSpring Boot
0 likes · 9 min read
Unlock Advanced JSON Control in Spring Boot 3 with Rare Jackson Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 3, 2025 · Backend Development

Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples

This article walks through the most common Jackson annotations for Spring Boot 3, explaining their purpose, showing concise code samples, and demonstrating the resulting JSON output with screenshots, so developers can confidently handle naming, ignoring, formatting, dynamic properties, and custom serialization in their APIs.

Jacksonannotationsjson
0 likes · 11 min read
Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples
Selected Java Interview Questions
Selected Java Interview Questions
Aug 30, 2025 · Backend Development

Mastering Jackson: Practical JSON Handling Techniques for Java Backend

This article provides a comprehensive guide to using Jackson for JSON processing in modern Java applications, covering typical scenarios such as object serialization, date formatting, nested structures, dynamic field filtering, tree model manipulation, a complete utility class, and best‑practice recommendations.

JacksonSerializationUtility
0 likes · 16 min read
Mastering Jackson: Practical JSON Handling Techniques for Java Backend
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 27, 2025 · Backend Development

5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3

This article explains why masking sensitive data such as ID numbers, phone numbers, and bank cards is essential, then demonstrates five practical Spring Boot 3 solutions—including custom JsonSerializer, Jackson modules, AOP, ResponseBodyAdvice, and JsonFilter—complete with code examples and output screenshots.

AOPJacksonResponseBodyAdvice
0 likes · 8 min read
5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 7, 2025 · Backend Development

Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions

This article explains why proper date formatting matters in Spring Boot applications, compares the default Jackson behavior, and presents five concrete approaches—including global configuration, @JsonFormat, custom ObjectMapper, @JsonComponent, and @JsonSerialize—detailing their implementations, advantages, and drawbacks.

JacksonSpring Bootdate-formatting
0 likes · 8 min read
Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 11, 2025 · Backend Development

How to Solve Spring Boot Bidirectional JSON Recursion with 6 Jackson Techniques

This article explains why bidirectional entity relationships cause infinite JSON recursion in Spring Boot, demonstrates the problem with sample code and console output, and presents six practical Jackson solutions—including @JsonManagedReference, @JsonIdentityInfo, @JsonIgnore, @JsonView, and custom serializers—complete with code snippets and result screenshots.

Bidirectional relationshipJSON recursionJackson
0 likes · 9 min read
How to Solve Spring Boot Bidirectional JSON Recursion with 6 Jackson Techniques
Java Backend Technology
Java Backend Technology
Jul 7, 2025 · Backend Development

Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter

This article explains how Jackson's @JsonAnySetter and @JsonAnyGetter annotations let Java classes gracefully handle unknown JSON properties by collecting them into a map during deserialization and emitting them as regular fields during serialization, complete with practical code examples and usage tips.

DeserializationDynamicPropertiesJackson
0 likes · 7 min read
Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter
macrozheng
macrozheng
Jul 1, 2025 · Backend Development

Master Dynamic JSON Fields in Java with @JsonAnyGetter & @JsonAnySetter

This article explains how to handle JSON objects with unknown or changing fields in Java by using Jackson's @JsonAnySetter to collect them during deserialization and @JsonAnyGetter to serialize them back, complete with code examples, pitfalls, and a concise analogy.

DeserializationDynamicPropertiesJackson
0 likes · 8 min read
Master Dynamic JSON Fields in Java with @JsonAnyGetter & @JsonAnySetter
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 18, 2025 · Backend Development

Master Polymorphic Deserialization in Spring Boot 3 with Jackson

This tutorial shows how to use Jackson's polymorphic deserialization in Spring Boot 3 to handle variable JSON request bodies by defining a common Order interface, concrete implementations, and a REST controller that routes calculations based on the order type, eliminating redundant endpoints.

JacksonPolymorphic DeserializationREST API
0 likes · 6 min read
Master Polymorphic Deserialization in Spring Boot 3 with Jackson
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.

DeserializationJacksonObjectMapper
0 likes · 12 min read
Mastering Jackson ObjectMapper in Spring Boot 3: Real-World Cases & Performance Tips
Lin is Dream
Lin is Dream
May 28, 2025 · Backend Development

Mastering Uniform Date Formatting in Spring Boot with Jackson

This guide shows how to configure Jackson in Spring Boot to consistently format LocalDateTime, Date, and String parameters as "yyyy-MM-dd HH:mm:ss", covering global settings via application properties, field-level @JsonFormat, custom serializers/deserializers, and unified handling in REST controllers.

JacksonSpring Bootdate-formatting
0 likes · 8 min read
Mastering Uniform Date Formatting in Spring Boot with Jackson
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.

@JsonViewJacksonREST
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.

@JsonViewJacksonREST
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.

FastjsonGsonJackson
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
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.

FastjsonGsonJackson
0 likes · 9 min read
Six Common JSON Parsing Methods in Java
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 EncryptionControllerAdvice
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.

DateTimeFormatterJacksonSpring Boot
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 AnnotationJacksonLong precision
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.

DateTimeFormatterJacksonSpring Boot
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 EncryptionControllerAdviceFastjson
0 likes · 12 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice
Programmer1970
Programmer1970
Sep 20, 2024 · Backend Development

Master Jackson in Spring Boot: Essential Annotations and Extension Points

This article provides a comprehensive guide to Jackson’s most frequently used annotations, core modules, and extension points in Spring Boot, illustrating each feature with concrete Java code examples that show how to customize serialization, deserialization, property handling, and polymorphic type processing.

DeserializationJacksonSerialization
0 likes · 24 min read
Master Jackson in Spring Boot: Essential Annotations and Extension Points
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.

JacksonSpring Bootbackend development
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.

DeserializationJacksonSerialization
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.

AOPDeserializationJackson
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.

JacksonSpring Bootdata-desensitization
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 securityControllerAdviceJackson
0 likes · 13 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice and Jackson
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 29, 2024 · Backend Development

How to Implement Dynamic, Configurable Data Desensitization in Spring Boot

This article walks through a Spring Boot solution for dynamically masking sensitive user data—such as names, ID numbers, phone numbers, and custom fields—by defining custom annotations, a configurable rule engine, a Redis‑backed context holder, and a Jackson serializer that applies masking at JSON serialization time, all while keeping performance overhead low.

Custom AnnotationDynamic ConfigurationJackson
0 likes · 24 min read
How to Implement Dynamic, Configurable Data Desensitization in Spring Boot
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.

FastjsonGsonJackson
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java
Architect
Architect
Feb 7, 2024 · Backend Development

How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice

This article walks through a real‑world scenario of adding symmetric encryption to Spring MVC endpoints for Android, iOS and H5 clients, detailing the requirements, code implementation of request and response interceptors, serialization pitfalls with enums and LocalDateTime, and the final solution using Jackson's ObjectMapper to keep encrypted and non‑encrypted responses consistent.

API securityControllerAdviceFastjson
0 likes · 17 min read
How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice
Java Backend Technology
Java Backend Technology
Dec 8, 2023 · Backend Development

Why Reusing a Single Jackson ObjectMapper Boosts JSON Parsing Speed 10×

Using Jackson's ObjectMapper for JSON parsing, this article benchmarks three approaches—creating a new mapper per call, sharing a global singleton, and using ThreadLocal—revealing that a single shared ObjectMapper can achieve up to ten times higher throughput, while ThreadLocal offers only modest gains.

JMHJacksonObjectMapper
0 likes · 7 min read
Why Reusing a Single Jackson ObjectMapper Boosts JSON Parsing Speed 10×
Java Architecture Diary
Java Architecture Diary
Dec 5, 2023 · Backend Development

Master JSON Pointer with Jackson: Syntax, Examples, and Java Code

This article explains the JSON Pointer syntax, provides encoding rules and practical examples, demonstrates how to extract values from complex JSON structures using Jackson's JsonUtil in Java, and shows how to map nodes to Java beans, offering a concise guide for developers.

JSON PointerJacksondata extraction
0 likes · 6 min read
Master JSON Pointer with Jackson: Syntax, Examples, and Java Code
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 16, 2023 · Backend Development

How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot

The article explains why user privacy data must be masked, then walks through a Spring Boot solution that uses custom annotations, an aspect‑oriented filter, a contextual serializer and a flexible rule engine stored in Redis to achieve dynamic, high‑performance data desensitization without polluting business logic.

Custom AnnotationDynamic ConfigurationJackson
0 likes · 18 min read
How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 7, 2023 · Information Security

Secure API Responses with Data Masking, Encryption, and Jackson Annotations

This article explains practical methods to protect sensitive API data in Spring Boot applications, covering encryption, masking, access control, logging, HTTPS, and database security, and demonstrates three implementation approaches: SQL‑level masking, field‑level encryption, and custom Jackson serialization using annotations and a contextual serializer.

API securityJacksonSpring Boot
0 likes · 8 min read
Secure API Responses with Data Masking, Encryption, and Jackson Annotations
macrozheng
macrozheng
Aug 24, 2023 · Backend Development

Why Reusing a Single Jackson ObjectMapper Boosts JSON Performance 10×

This article explains how repeatedly creating Jackson ObjectMapper instances hurts performance, demonstrates a JMH benchmark comparing new, singleton, and ThreadLocal ObjectMapper usages, and concludes that a single globally shared ObjectMapper can achieve up to ten times faster JSON parsing.

JMHJacksonObjectMapper
0 likes · 8 min read
Why Reusing a Single Jackson ObjectMapper Boosts JSON Performance 10×
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.

FastjsonJacksonSpring Boot
0 likes · 18 min read
Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2023 · Backend Development

How to Configure Date Formatting in SpringBoot Backend Applications

This guide explains how to customize the serialization and deserialization of Date objects in SpringBoot by adjusting application.yml/properties, using @JsonFormat, @DateTimeFormat, and @Temporal annotations, and by creating global converters for both form submissions and JSON payloads, ensuring consistent timezone handling.

Global ConverterJacksonSpringBoot
0 likes · 12 min read
How to Configure Date Formatting in SpringBoot Backend Applications
Programmer DD
Programmer DD
May 22, 2023 · Backend Development

What’s New in Spring Boot 3.1? Key Features and Upgrades Explained

Spring Boot 3.1.0 introduces a host of enhancements—including automatic configuration for Spring Authorization Server, upgraded HttpClient support, refined Testcontainers integration, new Docker‑Compose capabilities, and updates to Hibernate, Jackson, Mockito, and SSL handling—while also providing detailed Maven and Gradle options for image building.

Docker ComposeHibernateJackson
0 likes · 10 min read
What’s New in Spring Boot 3.1? Key Features and Upgrades Explained
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.

FastjsonGsonJMH
0 likes · 11 min read
Performance Benchmark of Common Java JSON Libraries Using JMH
Su San Talks Tech
Su San Talks Tech
Nov 14, 2022 · Backend Development

How to Secure Spring MVC APIs with Unified Request/Response Encryption

This article walks through implementing symmetric encryption for both request and response bodies in a Spring MVC project, covering requirement analysis, data model design, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to ensure consistent API output across Android, iOS, and H5 clients.

ControllerAdviceFastjsonJackson
0 likes · 14 min read
How to Secure Spring MVC APIs with Unified Request/Response Encryption
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Information Security

Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization

This article documents a step‑by‑step solution for preventing XSS attacks in a Spring Boot application, covering input validation, a custom HttpServletRequestWrapper, filter registration, and Jackson serializers/deserializers to escape malicious HTML both on request parameters and JSON payloads.

Input ValidationJacksonRequestWrapper
0 likes · 16 min read
Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization