diff options
Diffstat (limited to 'lib/json/common.rb')
-rw-r--r-- | lib/json/common.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb index fc6b7a8..f6230a7 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -581,12 +581,13 @@ module JSON # Sets or returns the default options for the JSON.dump method. # Initially: # opts = JSON.dump_default_options - # opts # => {:max_nesting=>false, :allow_nan=>true} + # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false} attr_accessor :dump_default_options end self.dump_default_options = { :max_nesting => false, :allow_nan => true, + :escape_slash => false, } # Dumps _obj_ as a JSON string, i.e. calls generate on the object and returns |