If these can be identified by fixed names/id’s then have a look here
Json path filter - Configuration - Home Assistant Community (home-assistant.io)
If these can be identified by fixed names/id’s then have a look here
Json path filter - Configuration - Home Assistant Community (home-assistant.io)