module JSON::ParserOptions
def prepare(opts)
def prepare(opts) if opts[:object_class] || opts[:array_class] opts = opts.dup on_load = opts[:on_load] on_load = object_class_proc(opts[:object_class], on_load) if opts[:object_class] on_load = array_class_proc(opts[:array_class], on_load) if opts[:array_class] opts[:on_load] = on_load end if opts.fetch(:create_additions, false) != false opts = create_additions_proc(opts) end opts end