# File 'activesupport/lib/active_support/json/encoding.rb', line 59defoptions_for(value)ifvalue.is_a?(Array)||value.is_a?(Hash)# hashes and arrays need to get encoder in the options, so that they can detect circular references
(options||{}).merge(:encoder=>self)elseoptionsendend