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

@param data [any] The 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 whose properties have been converted from
DynamoDB's AttributeValue format into their corresponding native
JavaScript types.

@example Convert a record received from a DynamoDB stream
var unmarshalled = AWS.DynamoDB.Converter.unmarshall({
string: {S: 'foo'},
list: {L: [{S: 'fizz'}, {S: 'buzz'}, {S: 'pop'}]},
map: {
M: {
nestedMap: {
M: {
key: {S: 'value'}
}
}
}
},
number: {N: '123'},
nullValue: {NULL: true},
boolValue: {BOOL: true}
});
Convert a DynamoDB record into a JavaScript object .