Sha256: 91de4410818a839f97371454d01e21792f2c0e17d57912610794ccec23d6bf81

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

# frozen_string_literal: true

require 'json'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-2.0.0 lib/grape/util/json.rb
grape-1.8.0 lib/grape/util/json.rb
grape-1.7.1 lib/grape/util/json.rb
grape-1.7.0 lib/grape/util/json.rb
grape-1.6.1 lib/grape/util/json.rb