diff options
Diffstat (limited to 'lib/json/common.rb')
-rw-r--r-- | lib/json/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb index f9f6e00..4e2e41d 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -178,7 +178,7 @@ module JSON else state = State.new end - state.encode(obj) + state.generate(obj) end # :stopdoc: @@ -230,7 +230,7 @@ module JSON end state.configure(opts) end - state.encode(obj) + state.generate(obj) end # :stopdoc: |