Parse incoming mesages as json.