JSONPATH Query to Switch item

I have got a json string via mqtt like this and i want map this value to an switch items when siteId is “default” as ON everything else should give OFF

{
"sessionId": "2a3fd958-cf9a-481c-9ecc-65da81c45826",
"customData": null,
"siteId": "default"

}

$.siteId=='default'
does doesnt do the trick

Is this possible with json path or do i have to use a js transform?

You have to use the JS transform.