Correct syntax for Curl in shell command?

I have a question regarding sending Curl using shell commands. The command is as follows:

> curl -i -d '{"method":"setPlayContent","id":47,"params":[{"output":"extOutput:zone?zone=1","uri":"extInput:sat-catv"}],"version":"1.2"}' http://xxx.xxx.xxx.xxx:10000

Unfortunately I cant quite figure out the syntax? I’m guessing I have to escape the quotes somehow?
Would greatly appreciate some help :slight_smile:

I’ve been trying RESTful command instead but can’t get it working.

rest_command:
  restful_test:
    url: 'http://192.168.0.191:10000/sony/avcontent'
    method: POST
    content_type: 'application/json'
    payload: '{"method":"setPlayContent","id":47,"params":[{"output":"extOutput:zone?zone=1","uri":"extInput:sat-catv"}],"version":"1.2"}'
    verify_ssl: false

Log reports:
2022-10-07 16:17:38.703 WARNING (MainThread) [homeassistant.components.rest_command] Error. Url: http://192.168.0.191:10000/sony/avcontent. Status code 404. Payload: b’{“method”:“setPlayContent”,“id”:47,“params”:[{“output”:“extOutput:zone?zone=1”,“uri”:“extInput:sat-catv”}],“version”:“1.2”}’