Module: Aws::Json::OjEngine Private

Defined in:
lib/aws-sdk-core/json/oj_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.

Constant Summary collapse

LOAD_OPTIONS =

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

{ mode: :compat, symbol_keys: false, empty_string: false }.freeze
DUMP_OPTIONS =

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

{ mode: :compat }.freeze
PARSE_ERRORS =

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

detect_oj_parse_errors

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.


19
20
21
# File 'lib/aws-sdk-core/json/oj_engine.rb', line 19

def dump(value)
  Oj.dump(value, DUMP_OPTIONS)
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.


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

def load(json)
  Oj.load(json, LOAD_OPTIONS)
rescue *PARSE_ERRORS => e
  raise ParseError.new(e)
end