Use json.JSONEncoder() and actually friggin test startkey and endkey