JSON.parse() is needed with data variable due to it being a string
JSON.parse() is needed with data variable due to it being a string