We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the user simply specifies @JsonFormat annotation with string shape, the shape is ignored and the date is serialized as long:
@JsonFormat
static class Person { @JsonFormat(shape = JsonFormat.Shape.STRING) public Date dateOfBirth; }
gets serialized as:
{"dateOfBirth":1198800000000}
I believe the correct behavior should be to write the date as a string in ISO8601 format.
If you agree I will implement the fix and create a PR for it.
The text was updated successfully, but these errors were encountered:
@aseovic yes that looks like a bug, PR would be great.
Sorry, something went wrong.
No branches or pull requests
If the user simply specifies
@JsonFormat
annotation with string shape, the shape is ignored and the date is serialized as long:gets serialized as:
I believe the correct behavior should be to write the date as a string in ISO8601 format.
If you agree I will implement the fix and create a PR for it.
The text was updated successfully, but these errors were encountered: