Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
instana / lib / oj_check.rb
Size: Mime:
begin
  require 'oj'
rescue LoadError => e
  # OJ is not available in JRuby
  module Instana
    class Oj
      def self.dump(*args)
        args.first.to_json
      end

      def self.load(*args)
        JSON.parse args.first
      end
    end
  end
end