I’m trying to integrate JSON output from Snips in my openhab rules but somehow the transformation doesn’t seem to work.
The rule is the following:
var String intentName = transform("JSONPATH", "$.intent.intentName", Snips_Intent.state.toString)
And Snips_Intent.state.toString contains:
The rule should output
[ "domi:LampenAusSchalten" ]
But logInfo(“snips.rule”, "intent name: " + intentName) outputs:
As you can see it outputs the complete JSON again?
What’s wrong here? According to an online JSONPATH tester it should work?
Openhab Version 2.4