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 132e9c8..ed4e047 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -436,12 +436,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 |