Updated 'data' variable in JSON to always be a dictionary.