Unfortunately this isn’t a solution to your specific problem, but I would recommend setting up zigbee2mqtt so that it publishes is attributes separately, rather than in a single JSON string. Here’s a primer:
This usually simplifies your Thing configuration, as you don’t have to transform anything on the way out of openHAB.