new (JSON::Pure::Parser)

        # File lib/json/pure/parser.rb, line 68
    68:       def initialize(source, opts = {})
    69:         super
    70:         if !opts.key?(:max_nesting) # defaults to 19
    71:           @max_nesting = 19
    72:         elsif opts[:max_nesting]
    73:           @max_nesting = opts[:max_nesting]
    74:         else
    75:           @max_nesting = 0
    76:         end
    77:         @allow_nan = !!opts[:allow_nan]
    78:         ca = true
    79:         ca = opts[:create_additions] if opts.key?(:create_additions)
    80:         @create_id = ca ? JSON.create_id : nil
    81:         @object_class = opts[:object_class] || Hash
    82:         @array_class = opts[:array_class] || Array
    83:       end