Skip to content

WW-4428 Add java.time support to JSON plugin#1603

Draft
lukaszlenart wants to merge 1 commit intomainfrom
feat/WW-4428-json-plugin-java-time-support
Draft

WW-4428 Add java.time support to JSON plugin#1603
lukaszlenart wants to merge 1 commit intomainfrom
feat/WW-4428-json-plugin-java-time-support

Conversation

@lukaszlenart
Copy link
Member

Summary

  • Add serialization/deserialization support for 6 java.time types (LocalDate, LocalDateTime, LocalTime, ZonedDateTime, OffsetDateTime, Instant) using ISO-8601 defaults
  • Add Calendar deserialization support (was serialize-only)
  • @JSON(format="...") annotation works for per-field custom formats on all new types
  • Existing Date/Calendar serialization behavior unchanged

Fixes WW-4428

Test plan

  • Each java.time type serializes to expected ISO format
  • Each java.time type deserializes from ISO string
  • @JSON(format="dd/MM/yyyy") custom format works for serialization and deserialization
  • Calendar deserialization works
  • Null value handling for temporal types
  • Round-trip test: serialize → deserialize → assert equality
  • Existing Date/Calendar tests still pass (regression)

🤖 Generated with Claude Code

@lukaszlenart lukaszlenart force-pushed the feat/WW-4428-json-plugin-java-time-support branch 3 times, most recently from a80cd9e to d5a57cd Compare February 27, 2026 15:21
@sonarqubecloud
Copy link

…upport

Add support for Java 8+ temporal types in the JSON plugin:
- LocalDate, LocalDateTime, LocalTime, ZonedDateTime, OffsetDateTime, Instant
- Each type serializes/deserializes using its ISO-8601 default format
- @JSON(format="...") annotation works for per-field custom formats
- Calendar deserialization support added (was serialize-only)
- Existing Date/Calendar serialization behavior unchanged

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@lukaszlenart lukaszlenart force-pushed the feat/WW-4428-json-plugin-java-time-support branch from d5a57cd to 47b8421 Compare February 27, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant