We regularly pass the currency along to an API as part of an array and expected Currency to serialize to a JSON string because it's stringable. However, it serializes to an empty array.
v0.7.0 made AbstractMoney JSON serializable, but Currency wasn't treated that way.
This updates Currency to be JSON serializable when using it separately from Money.
We regularly pass the currency along to an API as part of an array and expected
Currency
to serialize to a JSON string because it's stringable. However, it serializes to an empty array.v0.7.0 made
AbstractMoney
JSON serializable, butCurrency
wasn't treated that way.This updates
Currency
to be JSON serializable when using it separately fromMoney
.