Make sure the data assigned to user is a JSON object