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

Update JSON serializer to serialize to a locale-independent format #18

Merged
merged 2 commits into from
Mar 22, 2016
Merged

Update JSON serializer to serialize to a locale-independent format #18

merged 2 commits into from
Mar 22, 2016

Conversation

gws
Copy link
Contributor

@gws gws commented Mar 22, 2016

As described in #9, the JSON serializer was formatting Money values in a locale-dependent format. This change updates the serialization format to one that can be read back in by clojurewerkz.money.amounts/parse.

Note that this will break backward compatibility, but based on discussion in #9 it seems that may not be a problem.

I did not see an opportunity here for encoding Money objects in a locale-dependent format - only one encoder can be added to cheshire for Money objects, and cheshire does not offer an opportunity for selecting between multiple encoders that I can see.

gws added 2 commits March 22, 2016 20:54
…rmat

Note that this is a breaking change because the serialization format has been
changed.
@michaelklishin michaelklishin merged commit f9a4eb4 into clojurewerkz:master Mar 22, 2016
@michaelklishin
Copy link
Member

Thank you!

@michaelklishin
Copy link
Member

@gws please submit a PR that updates change log and credit yourself :)

@gws gws mentioned this pull request Mar 23, 2016
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.

2 participants