Go to https://jsonpathfinder.com
- Paste your JSON string into the left hand pane.
- It will appear as a JSON object in the right hand pane.
- In the right hand pane, click on the key you want (for example,
IP). - The correct JSON path will appear at the top of the right hand pane.
In the following screenshot, the JSON path is x.info.networking.eth0.IP
To use it in Home Assistant, replace x with value_json to produce:
value_json.info.networking.eth0.IP
