Parsing of JSON file in openhab

I am trying to get a response from a simple web service and want to trigger an item based on the input. The url “http://localhost:8080/RESTfulWebServiceExample/rest/IotWebService/get” in my browser gives me the output {“Trigger”:“yes”}. I want to read this “yes” .
I have created a java script file in transform folder iot.js
I am not sure what should be line of code in this java script file.
The code in items is:
String iot “Video” { http="<[http://localhost:8080/RESTfulWebServiceExample/rest/IotWebService/get:JS(iot.js)]" }
The error which I get this

Any help is appreciated.
Thanks,
Sujata.

Read the regex in the error message carefully. You’re missing another parameter (polling interval), with 10.000 (milliseconds, that is), it would need to read
String iot "Video" { http="<[http://localhost:8080/RESTfulWebServiceExample/rest/IotWebService/get:10000:JS(iot.js)]" }

Hi,
Yes, I was missing that argument. My bad!!
It’s working now.