Module: Aws::Json::JsonEngine Private

Defined in:
lib/aws-sdk-core/json/json_engine.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/aws-sdk-core/json/json_engine.rb', line 15

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

.load(json) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
# File 'lib/aws-sdk-core/json/json_engine.rb', line 9

def load(json)
  JSON.parse(json)
rescue JSON::ParserError => e
  raise ParseError.new(e)
end