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 Date Formatting, Null Exclusion, and snake_case
Solve common Jackson issues in Spring Boot such as '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, @JsonView, Mixins, and custom Serializers 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.