As shown in several hundred MQTT examples in this forum, use a JSONPATH transformation. This is an installable add-on. Like other transformation services, it can be used in different places within openHAB. Here you would use it in your channel settings.