I’d like to update a location
- item via JSONPATH:
JSON:
{
"vehicles": {
"gpsPosition":"48.425198, 10.768657"
}
}
items
Location Position "Position [%2$s°N %3$s°E %1$sm]" { http="<[NIU:30000:JSONPATH($.vehicles.gpsPosition)]" }
When the JSON gets loaded, the “Position”-item won’t get an update.
If I try REST API it works:
curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" -d "48.425198, 10.768657" "http://192.168.xxx.xxx:8080/rest/items/Position/state"
Why does the JSONPATH item transformation fail? (no error in log)