Http request json

hey i am new to the openhab platform and i want to use it to automate my room. i want to call the following http request which is in json format

http://myddnsdomain.ddns.net:1234/json?plain=[{"type":"raw","data":[4350,4300, 550,1550, 550,500, 550,1550, 550,1550, 550,500, 600,450, 600,1550, 550,500, 550,500, 550,1550, 550,500, 550,500, 550,1550, 550,1550, 600,450, 600,1550, 550,500, 550,1550, 550,1550, 550,1550, 550,1550, 550,500, 600,1500, 600,1550, 550,1550, 550,500, 550,500, 550,500, 550,500, 550,1550, 550,500, 550,500, 600,1500, 600,1550, 550,1550, 550,500, 550,500, 550,500, 550,500, 550,500, 550,500, 550,500, 550,500, 600,1500, 600,1550, 550,1550, 550,1550, 550,1550, 550],"khz":38,"repeat":1}]&pass=4361

i don’t know how to send it using the http binding. please help

http://docs.openhab.org/addons/bindings/http1/readme.html

http=">[ON:POST:http://www.domain.org/home/lights/23871/?status=on&type=text] >[OFF:POST:http://www.domain.org/home/lights/23871/?status=off]"

hey thanks for the reply but your example code works for normal url but not for json url.

Your URL is a normal URL. It just happens to be passing JSON instead of “on” as in the example.

If it doesn’t work you may need to use URL encoded escaped characters for the “{”, “:”, “”", and “,”.

But at the end of the day, JSON is just a string of characters like anything else.

i dont know how to do that. please can you give me an explanation

https://www.w3schools.com/tags/ref_urlencode.asp