blob: 9a9f074847145b1228be29b46329151c7563f0cc (
plain) (
tree)
|
|
class Hash
def to_json #:nodoc:
returning result = '{' do
result << map do |key, value|
"#{ActiveSupport::JSON.encode(key)}: #{ActiveSupport::JSON.encode(value)}"
end * ', '
result << '}'
end
end
end
|