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.3.2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.1.pre.archivefix lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.3.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0.rc2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0.rc1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0.pre3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0.pre2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.2.0.pre lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.4 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.3 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.2 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.0 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb