From: "Martín Fernández" Date: 2020-04-20T20:22:11-03:00 Subject: [ruby-core:97986] Deprecation warnings on ext/json/lib/json/common.rb Hello, First time writing to the mailing list here! I just started an upgrade from ruby 2.6.X to 2.7.X. While reviewing the changes that I need to do in my application in order to remove deprecation warnings I noticed a huge amount of warning messages from the json std lib. ``` /bundle/ruby/2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated ``` After looking into the code, it seems that the C parser receives as the last argument a set of options as named arguments. The current signature of `JSON::Ext::Parser` expects a `source` as the first argument and a hash with options as the second argument. I was wondering how this API should change in order to remove the warnings. Should the source be a required named argument ? If so, is,`JSON::Ext::Parser` a private API that can be changed ? Thank in advance! Best, Mart��n Unsubscribe: