Sha256: c6a83b340f3ac38a2693722f3a58cf1034bbf350a16b7d3acc79ae454b6c5902

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

require 'jrjackson'

module Legion
  module JSON
    # The Legion JSON parser when running on JRuby.
    class JrJackson
      def load(string)
        ::JrJackson::Json.load(string, symbolize_keys: true, raw: true)
      end

      def dump(object, options = {})
        ::JrJackson::Json.dump(object, options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-json-0.1.0 lib/legion/json/jrjackson.rb