Sending TCP string to (Node Red) Call a Home Assistant service

I want to send strings from a Node Red TCP Node to The Home Assistant Call Service node.
I have tried this but it keeps rebooting Node Red.

{ “domain”: “switch”, “service”: “turn_off”, “service_data”: { “entity_id”: “switch.porch_light” } }

I want to use the inputs payload.domain , payload.service , payload.data.

Any help please.

01%20PM

why not just use the call service node as intended?

Can you post the flow here. Have you made sure the payload is an json object?