Individual LED control on linux

Hello, I’m after some help with the JSON API. I want to use my raspberry pi to run curl commands to control individual leds of my led strip.

I tried this command, that works fine on windows:

curl -X POST -H “Content-Type: application/json” -d {“seg”:{“i”:[70,[255,0,0]]}} 192.168.0.69/json

However if I run it using my raspberry pi, this error pops up:

curl: (3) nested brace in URL position 6:
{seg:[255}

I’m not experienced with linux, so any help is appreciated! Thanks in advance!