Found that activesupport/json needs to be included for the sake of activesupport/core_ext/object/to_json