diff --git a/config/initializers/json.rb b/config/initializers/json.rb new file mode 100644 index 000000000..3bd2eabc8 --- /dev/null +++ b/config/initializers/json.rb @@ -0,0 +1,9 @@ +# fix for JSON deprecation warnings. See: https://github.com/flori/json/issues/399#issuecomment-734863279 + +module JSON + module_function + + def parse(source, opts = {}) + Parser.new(source, **opts).parse + end +end