handleMessage now gets data from the json object