Forum Discussion
ChayceDuncan
3 years agoQrew Captain
Your payload just from a general setup looks wrong with how you're intermingling your ' and "". Since you're doing a curl and your json needs to be a string - I would expect it to look more like this:
                        status_data='{
                        "to": "bpq4irp4i",
                        "data": [
                                {
                                "3": {
                                        "value": "206722"
                                },
                                "52": {
                                        "value": "' + escaped_notes_escaped + '"
                                }
                                }
                        ]
                        }'
If you're trying to user the ${} syntax you need to make it a template string using ` instead of ' like so - 
                        status_data=`{
                        "to": "bpq4irp4i",
                        "data": [
                                {
                                "3": {
                                        "value": "206722"
                                },
                                "52": {
                                        "value": "${escaped_notes_escaped}"
                                }
                                }
                        ]
                        }`
You should still only have one " next to value but you should be using a grave accent ` instead of a single quote ' 
------------------------------
Chayce Duncan
------------------------------