Clean up json dependencies for JRuby.