Http put and json not working

Hi,

If I use a browser to the address: http://192.168.0.111/api/***/groups/4, I get the following response:
{“name”:“bureau rue”,“lights”:[“4”,“5”,“6”],“type”:“Room”,“state”:{“all_on”:true,“any_on”:true},“recycle”:false,“class”:“Office”,“action”:{“on”:true,“bri”:254,“ct”:153,“alert”:“select”,“colormode”:“ct”}}

So I am sure I get a json as response.

I have set up in my items:
String e2_chambre_rue_Hue { http="<[http://192.168.0.111/api/***/groups/4]" }

And in my rules:
rule "Bureau rue lumiere froide"
when
Item e2_chambre_rue_boutton_virtuel_lumiere_froide received command
then
var i = 0
while ((i=i+1) < 10){
var String data = e2_chambre_rue_Hue.state.toString
logInfo(“maison”, data)
Thread::sleep(2000)
}
logInfo(“maison”, “out”)
end

If I do this, I only get null in the log:
13:57:20.641 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:22.657 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:24.673 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:26.693 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:28.713 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:30.731 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:32.747 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:34.762 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:36.774 [INFO ] [clipse.smarthome.model.script.maison] - NULL
13:57:38.784 [INFO ] [clipse.smarthome.model.script.maison] - out

How can I achieve this?

When e2_chambre_rue_boutton_virtuel_lumiere_froide receives a command e2_chambre_rue_Hue is uninitialized (i.e. NULL).

According to the docs an incoming HTTP config should look like:

http="<[<url>:<refreshintervalinmilliseconds>:<transformationrule>]"

You are missing the refresh interval and transformation rule.