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.8.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.8.0.pre4 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.8.0.pre3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.8.0.pre2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.8.0.pre lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.7.0.pre lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.19 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.17 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.16 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.15.alpha1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.15.cf2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.15.pre lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.14 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.13 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12.prewut5 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12.prewut4 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12.prewut3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12.prewut2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.6.12.prewut1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb