Sha256: 64690763e4a7cb0864316f565be76ce0d723ea2297951cbb60bc557215d21ac2

Contents?: true

Size: 205 Bytes

Versions: 15

Compression:

Stored size: 205 Bytes

Contents

require 'rubygems'
require 'json'

puts `ruby -v`
puts `gem search json`

h = {}
p = h
(1..21).each do |i|
  p['a'] = {}
  p = p['a']
end

s = h.to_json

p s

h = JSON.parse(s, :max_nesting => 100)

p h

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rufus-json-1.0.6 test/nesting20.rb
rufus-json-1.0.5 test/nesting20.rb
rufus-json-1.0.4 test/nesting20.rb
rufus-json-1.0.3 test/nesting20.rb
rufus-json-1.0.2 test/nesting20.rb
rufus-json-1.0.1 test/nesting20.rb
rufus-json-1.0.0 test/nesting20.rb
rufus-json-0.2.7 test/nesting20.rb
rufus-json-0.2.6 test/nesting20.rb
rufus-json-0.2.5 test/nesting20.rb
rufus-json-0.2.4 test/nesting20.rb
rufus-json-0.2.3 test/nesting20.rb
rufus-json-0.2.2 test/nesting20.rb
rufus-json-0.2.1 test/nesting20.rb
rufus-json-0.2.0 test/nesting20.rb