blob: 9a9f074847145b1228be29b46329151c7563f0cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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
|