Sha256: 5626acb9e032c2f079937505b31ad8b7247fded481dfad54e2d4ef07bd86ccbe

Contents?: true

Size: 425 Bytes

Versions: 96

Compression:

Stored size: 425 Bytes

Contents

require 'gson' unless defined?(::Gson)

module MultiJson
  module Adapters
    # Use the gson.rb library to dump/load.
    module Gson
      extend self

      ParseError = ::Gson::DecodeError

      def load(string, options={}) #:nodoc:
        ::Gson::Decoder.new(options).decode(string)
      end

      def dump(object, options={}) #:nodoc:
        ::Gson::Encoder.new(options).encode(object)
      end
    end
  end
end

Version data entries

96 entries across 94 versions & 7 rubygems

Version Path
engineyard-serverside-2.6.1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs6 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs5 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs4 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.cs lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.5.0.compilesync lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.4.2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.4.1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.4.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.9 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.7 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.6 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.5 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.4 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb