converted message to json