summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych.rb')
-rw-r--r--ext/psych/lib/psych.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index 59f9712fcd..6c892c5393 100644
--- a/ext/psych/lib/psych.rb
+++ b/ext/psych/lib/psych.rb
@@ -182,7 +182,7 @@ module Psych
###
# Dump Ruby object +o+ to a JSON string.
def self.to_json o
- visitor = Psych::Visitors::JSONTree.new(:json => true)
+ visitor = Psych::Visitors::JSONTree.new
visitor << o
visitor.tree.to_yaml
end