Skip to content

Parse imported JSON rates with JSON.parse - #1227

Open
lenamonj wants to merge 1 commit into
RubyMoney:mainfrom
lenamonj:import-rates-json-parse
Open

Parse imported JSON rates with JSON.parse#1227
lenamonj wants to merge 1 commit into
RubyMoney:mainfrom
lenamonj:import-rates-json-parse

Conversation

@lenamonj

@lenamonj lenamonj commented Sep 3, 2026

Copy link
Copy Markdown

import_rates(:json, ...) parsed with JSON.load, which honours json_class keys and instantiates any class carrying a json_create hook, while the method's own warning offers :json as a safe alternative to :ruby.

It now parses with JSON.parse. The new spec fails on main and passes with the change; rspec and rubocop are clean. CHANGELOG and AUTHORS updated.

@sunny sunny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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