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

Retro-compatibility with dates between v9 and v10 #118

Open
Alban42 opened this issue Jul 5, 2024 · 1 comment
Open

Retro-compatibility with dates between v9 and v10 #118

Alban42 opened this issue Jul 5, 2024 · 1 comment

Comments

@Alban42
Copy link

Alban42 commented Jul 5, 2024

Hello,

Between v9 and V10 versions, the dates format have changed.
I don’t see anything in the v10 to be compatible with v9 date format.

Is there any custom adapter (or possibility to add one) to able to deserialize the « old » date format (or any other solution ) ?

Many thanks in advance.
Regards

@elominp
Copy link

elominp commented Jul 16, 2024

Hello,

@zubri

I'm upping the issue because this causes compatibility troubles between applications using the v9 library and the ones migrated to the v10.

Date fields are still working but the DateTime fields have changed format, causing an application using the v10 library to read null instead of the expected value when parsing JSON received or saved on storage based on the previous version of the library.

We found in your documentation that you mention this compatibility issue but with no concrete documentation on how to handle it.

What method do you recommend to handle this? Can we expect the JSON parser in v10 to be able to parse old datetime format (or a PR for this to be accepted, even if it will be "deprecated" and possibly removed in a v11) ?

Do you recommend a configuration to pass in the library to tweak the JSON parser and have custom code to handle datetimes of the previous format?

Must we convert all stored MX in JSON format back to XML with v9 based version of the application then parse & convert them again to JSON with the v10 based version?

Regards

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

No branches or pull requests

2 participants