Skip to content

JSON converter for YearMonth type #137

@skarllot

Description

@skarllot

The NodaTime library currently lacks a JSON converter for the YearMonth type, which prevents proper serialization and deserialization when working with JSON.

Current Situation

  • JSON converters exist for other NodaTime types (such as LocalDate, LocalDateTime, etc.)
  • When attempting to serialize/deserialize YearMonth objects, users currently need to implement custom solutions

Proposed Solution

I would like to implement a YearMonthJsonConverter that follows the same patterns and conventions as the existing NodaTime JSON converters.

Questions

  • Are there any specific requirements or patterns I should follow for consistency with the existing converters?
  • Would this contribution be welcome?
  • Is anyone already working on this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions