[SOLVED] Jsonpath fails after update to 2.3

I just upgraded to 2.3 and now a script of mine stopped working which gets sensor values periodically from a json via http

import org.openhab.core.library.types.*
import org.openhab.model.script.actions.*


rule "Sensor"

when Time cron "0 0/2 * 1/1 * ? *" //every two Minutes
then
var String URL= "http://192.168.1.66/data.json"
var String json = sendHttpGetRequest(URL)
var String P10

P10=transform("JSONPATH", "$.sensordatavalues[0].value", json)

postUpdate(PM10 , P10)

end

I’m getting

2018-06-16 05:16:00.105 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert ‘{“software_version”: “NRZ-2018-103”, “age”:“135”, “sensordatavalues”:[{“value_type”:“SDS_P1”,“value”:“15.73”},{“value_type”:“SDS_P2”,“value”:“14.23”},{“value_type”:“BME280_temperature”,“value”:“22.25”},{“value_type”:“BME280_humidity”,“value”:“65.18”},{“value_type”:“BME280_pressure”,“value”:“81969.86”},{“value_type”:“samples”,“value”:“603283”},{“value_type”:“min_micro”,“value”:“230”},{“value_type”:“max_micro”,“value”:“25200”},{“value_type”:“signal”,“value”:"-75"}]}’ to a state type which item ‘PM10’ accepts: [DecimalType, QuantityType, UnDefType].

Seems like it doesn’t extract the values at all anymore and just stores the full file in the variable. It did work until before the update.

Can anyone point me in the right direction?

Nevermind. For some reason the JSONPath Transformation Addon got uninstalled.

I’m leaving this here in case anyone else runs into it.

Just to help out, you no longer need those imports. Pretty much everything in org.openhab is available.