Are you aware of the option in zigbee2mqtt to transmit the attributes on separate topics, rather than using JSON? Might make things easier for you: