Json Articles
2 articles about Json. Explore Spring Boot implementation, design, and operations across related topics.
-
Customizing JSON Serialization with Jackson in Spring Boot - A Guide to Dates, Null Exclusion, and snake_case Support
Solve common Spring Boot Jackson pain points like 'LocalDateTime is returned as an array' and 'the frontend requires snake_case'. This REST API implementation guide covers date formatting, null exclusion, snake_case conversion, and @JsonView/Mixin/custom Serializer with code examples.
-
How to Output JSON Structured Logs in Spring Boot - Production-Ready Setup with Logstash Encoder and MDC
Step-by-step guide to configuring Spring Boot to output logs in JSON format using logstash-logback-encoder. Covers how to automatically attach request IDs and user IDs via MDC, Spring Boot 3.4 native structured logging support, and environment-based profile switching.