-
Notifications
You must be signed in to change notification settings - Fork 1
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
Clean up format #18
Comments
Thanks for the suggestion! There are several problems with it.
Consider using a library that uses JSONPath to extract necessary data from the currency JSON file. I may add this capability in my package too but this needs to be done carefully. |
Interesting. Thanks for the explanation. I suppose I'd assume that there is a known set of properties for any given ISO data standard, allowing it to be transformed arbitrarily and easily into a more user-friendly JSON format. And something like JSONPath would only be needed if you were trying to generalize the code to multiple standards and didn't want to research the nuances of multiple standards or wanted to maintain flexibility. But I'm sure you've considered this. |
That makes sense, but the backcompat issue basically kills a ton of improvement potential |
major version bump? |
Yeah, because the format is different. A codebase that assumes current shape of the JSON would start producing errors with the new format — hence the major bump. |
👍 Yeah. Was a suggestion. Not locked into the current format due to backward compat considerations. |
I noticed the data at
@iso4217/json/data.json
is in an unusual format. I assume it's what is generated by the XML converter.Given that this data is an a known format, it'd be more useful to transform this a cleaner format.
Existing:
Suggested, example:
or
The text was updated successfully, but these errors were encountered: