Currently, my code looks like
function(keys, values, rereduce){
return {"key":keys[0][0],"count":values.length};
}
Upon running this, the resulting row is:
key = None, value={u'count':3,u'key':u'123456'}
This works for my purposes, as I just parse the JSON string in the value attribute, but it seems like the wrong way to be doing things.
So how can I have the reduce function emit a key value, rather than None?