So I have a command tellraw @p [{"text":"Cinimatic camera","color":"green","clickEvent":{"action":"run_command","value":"/tellraw @p [{\"text\":\"ON \",\"color\":\"green\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/replaceitem entity @p armor.head carved_pumpkin\"}},{\"text\":\"OFF\",\"color\":\"dark_red\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/replaceitem entity @p armor.head air\"}}]"}}]
And when I use it in a command block to make a settings menu it throws the following error:
Invalid chat component: Unterminated string at line 1 column 244 path $[1].clickEvent.value ...ekkraw @p [{"text":"OFF","color":"dark_red","bold":true,"clickEvent":{"action":"run_command","value":"/replaceite<--[HERE]
What is causing this error? and can someone show me the correct command?