class ActiveSupport::JSON::Encoding::JSONGemEncoder

def stringify(jsonified)

Encode a "jsonified" Ruby data structure using the JSON gem
def stringify(jsonified)
  ::JSON.generate(jsonified, quirks_mode: true, max_nesting: false)
end