Sha256: 03a53617d88488fe0aa8a2b733b1165a39640a8b13bba5130f09330adb0d2a2c

Contents?: true

Size: 286 Bytes

Versions: 20

Compression:

Stored size: 286 Bytes

Contents

# encoding: utf-8

require 'multi_json'

module Nimbu
  module Utils
    module Json
      extend self

      def decode(*args)
        if MultiJson.respond_to?(:load)
          MultiJson.load(*args)
        else
          MultiJson.decode(*args)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/utils/json.rb
nimbu-api-0.4.4 lib/nimbu-api/utils/json.rb
nimbu-api-0.4.3 lib/nimbu-api/utils/json.rb
nimbu-api-0.4.2 lib/nimbu-api/utils/json.rb
nimbu-api-0.4.1 lib/nimbu-api/utils/json.rb
nimbu-api-0.4.0 lib/nimbu-api/utils/json.rb
nimbu-api-0.3.0 lib/nimbu-api/utils/json.rb
nimbu-api-0.2.1 lib/nimbu-api/utils/json.rb
nimbu-api-0.2 lib/nimbu-api/utils/json.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/utils/json.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/utils/json.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/utils/json.rb
nimbu-api-0.2.beta lib/nimbu-api/utils/json.rb
nimbu-api-0.1.5 lib/nimbu-api/utils/json.rb
nimbu-api-0.1.4 lib/nimbu-api/utils/json.rb
nimbu-api-0.1.3 lib/nimbu-api/utils/json.rb
nimbu-api-0.1.1 lib/nimbu-api/utils/json.rb
nimbu-api-0.1 lib/nimbu-api/utils/json.rb
nimbu-api-0.0.2 lib/nimbu-api/utils/json.rb
nimbu-api-0.0.1 lib/nimbu-api/utils/json.rb