Sha256: 57deddf9a895d2150a6608f870e30634247dd28b7843d21ec1049712e4ca23ff

Contents?: true

Size: 181 Bytes

Versions: 12

Compression:

Stored size: 181 Bytes

Contents

# frozen_string_literal: true

module Grape
  if Object.const_defined? :MultiJson
    Json = ::MultiJson
  else
    Json = ::JSON
    Json::ParseError = Json::ParserError
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
grape-1.6.2 lib/grape/util/json.rb
grape-1.6.0 lib/grape/util/json.rb
grape-1.5.3 lib/grape/util/json.rb
grape-1.5.2 lib/grape/util/json.rb
grape-1.5.1 lib/grape/util/json.rb
grape-1.5.0 lib/grape/util/json.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/lib/grape/util/json.rb
grape-1.4.0 lib/grape/util/json.rb
grape-1.3.3 lib/grape/util/json.rb
grape-1.3.2 lib/grape/util/json.rb
grape-1.3.1 lib/grape/util/json.rb
grape-1.3.0 lib/grape/util/json.rb