mboudreau/Alternator — pull request #82 by James-Richardson (2013-12-13 18:18:55+00:00)
Title: Fixing querying items containing set attributes

Using Alternator, I found that when querying items, some attributes were unexpectedly coming back as null, or even getting assigned the values of another attribute.

I suspected the problem was caused by the use of set attributes (SS and NS). Looking at the Alternator source, I saw that there were no tests involving set attributes.

I eventually tracked the bug down to the JSON returned by QueryResultMarshaller. For sets, the JSON looked like this: {"SS":"str1,str2"}. The fix to QueryResultMarshaller corrects this to this: {"SS":["str1","str2"]}.