using something what is not compatible with jruby is not good idea. I see that oj is alternative to standard json parser, why not use what ruby offers by default?