Fixes deprecation warning re: `active_support/core_ext/object/to_json`