lib/dynamodb/converter.js
function marshallItem(data, options) {
    return AWS.DynamoDB.Converter.input(data, options).M;
  }
function marshallItem(data, options) {
    return AWS.DynamoDB.Converter.input(data, options).M;
  }
function marshallItem ( data , options ) { return AWS . DynamoDB . Converter . input ( data , options ) . M ; }
Convert a JavaScript object into a DynamoDB record.

@param data [any] The data to convert to a DynamoDB record
@param options [map]
@option options convertEmptyValues [Boolean] Whether to automatically
convert empty strings, blobs,
and sets to `null`
@option options wrapNumbers [Boolean]  Whether to return numbers as a
NumberValue object instead of
converting them to native JavaScript
numbers. This allows for the safe
round-trip transport of numbers of
arbitrary size.

@return [map] An object in the DynamoDB record format.

@example Convert a JavaScript object into a DynamoDB record
var marshalled = AWS.DynamoDB.Converter.marshall({
string: 'foo',
list: ['fizz', 'buzz', 'pop'],
map: {
nestedMap: {
key: 'value',
}
},
number: 123,
nullValue: null,
boolValue: true,
stringSet: new DynamoDBSet(['foo', 'bar', 'baz'])
});
Convert a JavaScript object into a DynamoDB record .