# Warning in ruby

**URL:** <https://www.ruby-forum.com/t/warning-in-ruby/223899>\
**Category:** Ruby\
**Created:** [October 22, 2012, 11:19pm UTC](https://www.ruby-forum.com/t/warning-in-ruby/223899 "2012-10-22T23:19:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 22, 2012, 11:19pm UTC](https://www.ruby-forum.com/t/warning-in-ruby/223899/1 "2012-10-22T23:19:09Z")

</div>

require ‘rubygems’  
require ‘watir-webdriver’  
br=Watir::Browser.new

if you run the above program you get warning:

[WARNING] MultiJson is using the default adapter (ok\_json). We recommend  
loading a different JSON library to improve performance.  
=\> #\<Watir::Browser:0x7f0eb1bcae00 url=“about:blank” title=""\>

why and how can I fix it, I would also like to know how can I suppress  
it? many other pages suggests using -W, but I am unable to do it.

---

<div class="post-metadata">

**Author:** ![proggrammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@proggrammer](https://www.ruby-forum.com/u/proggrammer)\
**Post date:** [October 23, 2012, 7:29am UTC](https://www.ruby-forum.com/t/warning-in-ruby/223899/2 "2012-10-23T07:29:57Z")

</div>

Am 22.10.2012 23:19, schrieb ajay paswan:

> require ‘rubygems’

Are you using Ruby 1.9? If so, you can omit this line.

> require ‘watir-webdriver’  
> br=Watir::Browser.new

> if you run the above program you get warning:
> 
> [WARNING] MultiJson is using the default adapter (ok\_json). We recommend  
> loading a different JSON library to improve performance.  
> =\> #\<Watir::Browser:0x7f0eb1bcae00 url=“about:blank” title=“”\>
> 
> why and how can I fix it […]

A search for the warning gives:

> **[Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups=#!topic/selenium-users/6Y7wJOdBG7o)**

> […] I would also like to know how can I suppress  
> it? many other pages suggests using -W, but I am unable to do it.

???

use `-W0’

---

<div class="post-metadata">

**Author:** ![proggrammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@proggrammer](https://www.ruby-forum.com/u/proggrammer)\
**Post date:** [October 23, 2012, 8:05am UTC](https://www.ruby-forum.com/t/warning-in-ruby/223899/3 "2012-10-23T08:05:41Z")

</div>

No, am using 1.8.7
