converted msg format to json