"value = data[key]" and "data[key] = type" Can you be more specific with your variable names?