Wantworthy/dynode — pull request #20 by ShadowCloud (2012-07-11 08:07:26+00:00)
Title: Fix for: boolean values converted to strings instead of numbers

Boolean values should be converted to numbers on DynamoDB, in this way we can have the following item with boolean properties:

var item = { hash: "whatever", isBetter: true, isWorse: false };
item.put();

And it can be retrieved and tested in the following way:

var item = table.get_item({hash: "whatever"});
item.isBetter == true; // true
item.isWorse == false; // true

Because in Javascript (and many other languages):

1 == true; // true
0 == false; // true