Sha256: cfb9d38efd8846221fa80c051b0334cb3e972b3fdf211f253a9f23cfd16903d0

Contents?: true

Size: 340 Bytes

Versions: 24

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

require 'json'

module Aws
  module Json
    module JsonEngine
      class << self
        def load(json)
          JSON.parse(json)
        rescue JSON::ParserError => e
          raise ParseError.new(e)
        end

        def dump(value)
          JSON.dump(value)
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
aws-sdk-core-3.214.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.213.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.212.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.211.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.210.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.209.1 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.209.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.208.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.207.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.206.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.205.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.204.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.203.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.202.2 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.202.1 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.202.0 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.201.5 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.201.4 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.201.3 lib/aws-sdk-core/json/json_engine.rb
aws-sdk-core-3.201.2 lib/aws-sdk-core/json/json_engine.rb