Skip to content
New issue

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

JSON serialization of datetime fields for iso20022 messages results in multiple parts? #40

Closed
seanleblancicdtech opened this issue Jan 15, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@seanleblancicdtech
Copy link

Is there a way to customize this to produce an ISO 8601 format?

For example, the output I get when serializing to JSON (with toJson() on the AbstractMX class) for creDtTm:

"creDtTm": {
"year": 2022,
"month": 1,
"day": 14,
"timezone": 0,
"hour": 13,
"minute": 44,
"second": 39,
"fractionalSecond": 0.319
}

@zubri
Copy link
Member

zubri commented Feb 23, 2022

Yes, there is a custom adapter to do that on purpose.

Check the answer in #42

You could create your own JSON serialization method without the adapter.

@zubri zubri self-assigned this Mar 8, 2022
@zubri zubri added the question Further information is requested label Mar 8, 2022
@zubri zubri closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants