diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index eb7b4494c..3f5a71f7a 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -81,7 +81,9 @@ class Item(object): def to_json(self): attributes = {} for attribute_key, attribute in self.attrs.items(): - attributes[attribute_key] = attribute.value + attributes[attribute_key] = { + attribute.type : attribute.value + } return { "Attributes": attributes