Method: Aws::Plugins::JsonvalueConverter::Handler#serialize_jsonvalue

Defined in:
lib/aws-sdk-core/plugins/jsonvalue_converter.rb

#serialize_jsonvalue(v, context) ⇒ 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.



46
47
48
49
50
51
# File 'lib/aws-sdk-core/plugins/jsonvalue_converter.rb', line 46

def serialize_jsonvalue(v, context)
  unless v.respond_to?(:to_json)
    raise ArgumentError, "The value of #{context} is not JSON serializable."
  end
  v.to_json
end