diff --git a/src/money/currency/json.cr b/src/money/currency/json.cr index 6325dcd0..986e285f 100644 --- a/src/money/currency/json.cr +++ b/src/money/currency/json.cr @@ -19,7 +19,7 @@ class Money::Currency def self.new(pull : JSON::PullParser) case pull.kind - when :string + when JSON::PullParser::Kind::String find(pull.read_string) else previous_def diff --git a/src/money/money/json.cr b/src/money/money/json.cr index ee1b8aea..4227bf89 100644 --- a/src/money/money/json.cr +++ b/src/money/money/json.cr @@ -15,7 +15,7 @@ struct Money def self.new(pull : JSON::PullParser) case pull.kind - when :string + when JSON::PullParser::Kind::String parse(pull.read_string) else previous_def