## Summary
This fixes multiple issues with the data not being sent correctly in… the AWS SQS Node.
- We were failing to send JSON input data - resulted in a 400 response
- We were sending Expression JSON as [object Object]
- We were failing to send JSON strings / anything string with certain characters in it - resulted in a 400 response
## Related tickets and issues
https://github.com/n8n-io/n8n/issues/8353
https://community.n8n.io/t/sqs-not-accepting-json/35340
## Review / Merge checklist
Test workflow
```
{
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "8c8c5237b8e37b006a7adce87f4369350c58e41f3ca9de16196d3197f69eabcd"
},
"nodes": [
{
"parameters": {},
"id": "382e8930-16ba-4cb6-83b0-7ce0009667bb",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
720,
300
]
},
{
"parameters": {
"fields": {
"values": [
{
"name": "test",
"stringValue": "test"
}
]
},
"options": {}
},
"id": "1fd6165f-7b7d-4afd-acd8-84316990e8f4",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [
980,
-20
]
},
{
"parameters": {
"queue": "https://sqs.eu-west-1.amazonaws.com/551799878281/test",
"options": {}
},
"id": "0b47666a-e285-483e-be65-b2ea7494b167",
"name": "Send Input Data",
"type": "n8n-nodes-base.awsSqs",
"typeVersion": 1,
"position": [
1260,
-20
],
"credentials": {
"aws": {
"id": "qkJnhArcHAVcCB2t",
"name": "AWS account"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"queue": "https://sqs.eu-west-1.amazonaws.com/551799878281/test",
"sendInputData": false,
"message": "={{ { \"my_field_1\": \"value\", \"my_field_2\": 1 } }}",
"options": {}
},
"id": "9f20ec7d-3fad-4ab2-a630-480aba558ee1",
"name": "Send Expression JSON",
"type": "n8n-nodes-base.awsSqs",
"typeVersion": 1,
"position": [
1260,
160
],
"credentials": {
"aws": {
"id": "qkJnhArcHAVcCB2t",
"name": "AWS account"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"queue": "https://sqs.eu-west-1.amazonaws.com/551799878281/test",
"sendInputData": false,
"message": "{ \"my_field_1\": \"value\", \"my_field_2\": 1 }",
"options": {}
},
"id": "e6b6bc73-a8b6-4f45-a40a-90b0b2d94032",
"name": "Send String JSON",
"type": "n8n-nodes-base.awsSqs",
"typeVersion": 1,
"position": [
1260,
360
],
"credentials": {
"aws": {
"id": "qkJnhArcHAVcCB2t",
"name": "AWS account"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"queue": "https://sqs.eu-west-1.amazonaws.com/551799878281/test",
"sendInputData": false,
"message": "This is a test",
"options": {}
},
"id": "10f99cf6-7da1-4ab5-bc85-d3ad30107ce6",
"name": "Send String",
"type": "n8n-nodes-base.awsSqs",
"typeVersion": 1,
"position": [
1260,
540
],
"credentials": {
"aws": {
"id": "qkJnhArcHAVcCB2t",
"name": "AWS account"
}
},
"onError": "continueErrorOutput"
}
],
"connections": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
"node": "Send Expression JSON",
"type": "main",
"index": 0
},
{
"node": "Send String JSON",
"type": "main",
"index": 0
},
{
"node": "Send String",
"type": "main",
"index": 0
},
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Send Input Data",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {}
}
```