message received is a json object, consume it