Tagged articles
ObjectMapper
14 articles · Page 1 of 1
This tutorial demonstrates how to use Jackson in Java for JSON processing, covering Maven dependency setup, JavaBean serialization, collection mapping with TypeReference for generics, and tree-model parsing via JsonNode to extract fields without POJOs.
JSONJacksonJava
0 likes · 12 min read

This article details the practical challenges and solutions when migrating from Spring Boot 3.x to 4.x, focusing on the Jackson 2 to 3 transition including package changes, exception handling updates, annotation exceptions, immutable ObjectMapper configuration, and coexistence strategies for legacy dependencies.
JSONJacksonJackson 3
0 likes · 16 min read

This article explores advanced Jackson customization in Spring Boot, covering ObjectMapper configuration, global date formatting and BigDecimal precision handling, dynamic sensitive field desensitization using BeanSerializerModifier and ThreadLocal context, and streaming JSON generation with JsonGenerator to handle large datasets without memory overflow.
JacksonObjectMapperSerialization
0 likes · 19 min read

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

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

This article benchmarks the cost of instantiating a new ObjectMapper for each JSON conversion in a SpringBoot project, demonstrates a singleton implementation that boosts read performance by 18× and write performance by up to 300×, and shows how to add custom serializers without sacrificing speed.
JMHJavaObjectMapper
0 likes · 8 min read

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

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

This article examines the performance impact of instantiating a new Jackson ObjectMapper for each JSON parsing operation versus reusing a global instance, using JMH micro‑benchmarks to show that a shared ObjectMapper can be up to ten times faster.
JMHJacksonJava
0 likes · 7 min read

This article benchmarks three ObjectMapper usage patterns—creating a new instance per call, sharing a global singleton, and using ThreadLocal—demonstrating that a single shared ObjectMapper can achieve up to ten‑fold higher throughput in JSON parsing.
JMHJacksonJava
0 likes · 7 min read

This tutorial explains how Java developers can use Jackson Mixins to add custom JSON serialization and deserialization behavior to classes that lack default constructors or getters, without modifying the original classes, and shows how to register Mixins via ObjectMapper or custom modules.
JSONJacksonJava
0 likes · 7 min read

This article provides a comprehensive guide to using Jackson with Spring Boot, covering its core modules, Maven dependencies, ObjectMapper usage, JSON tree model, custom deserializers, XML handling, configuration options, and practical code examples for serialization and deserialization.
JSONJacksonJava
0 likes · 18 min read

This tutorial demonstrates how to use Jackson's ObjectMapper and ObjectNode to programmatically add, modify, and delete fields in JSON strings or Java objects, providing clear code examples and explaining the underlying JsonNode API for flexible JSON manipulation.
JSONJacksonJava
0 likes · 5 min read

This tutorial explains how Spring Boot automatically configures Jackson's ObjectMapper, shows how to override it with a custom mapper that formats Date fields, and demonstrates both serialization and deserialization of JSON using the customized ObjectMapper in a Spring MVC controller.
JSONJacksonJava
0 likes · 6 min read
