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
- .dump(value) ⇒ Object private
- .load(json) ⇒ Object private
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.
13 14 15 |
# File 'lib/aws-sdk-core/json/json_engine.rb', line 13 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.
7 8 9 10 11 |
# File 'lib/aws-sdk-core/json/json_engine.rb', line 7 def load(json) JSON.parse(json) rescue JSON::ParserError => e raise ParseError.new(e) end |