I use OH4.1.2 and I would like to get data into OH, send by an api via a webhook.
I could receive the data, but I have no clue, how I could get this data into openHab and work with this data.
The webhook send its data as POST application/json in following format:
Can someone point me to the right approach to receive the data, probably store it with an item and use later the states out of it. In prinicpal I guess, I could be handled with json transformation - but I have no clue where to start reading.
Your json is straightforward, so your expression will not be too difficult to work out. For example to get the title you’ll just use $.title. However, if you are unsure, you can always use an online tester such as https://jsonpath.com/ to work out what the path needs to be.