From e5caaf5913d478eba00f0e9d3eb0e5ddf6714b67 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Tue, 14 Jul 2015 21:57:14 -0400 Subject: [PATCH] Fix for dynamodb2 attribute response. Closes #374. --- moto/dynamodb2/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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