# File lib/json/pure/parser.rb, line 61 61: def initialize(source, opts = {}) 62: super 63: if !opts.key?(:max_nesting) # defaults to 19 64: @max_nesting = 19 65: elsif opts[:max_nesting] 66: @max_nesting = opts[:max_nesting] 67: else 68: @max_nesting = 0 69: end 70: @allow_nan = !!opts[:allow_nan] 71: @create_id = JSON.create_id 72: end