Double quotes out of an sprintf object

GGM's icon

Forgive me if this is a stupid question, however, after many attempts and forum searches, I am frustratedly unsuccessful at getting double quotation marks and the sprintf object to play well together.

As can be seen in the attached patcher, I need to get something like the following to be converted to a symbol to send to an aka.shell object.

curl -i -X PUT -H "Content-Type:application/json" -d '{ "active": "02" }' 'http://192.168.1.12:8080/blah/blah/blah'

the closest I can get to this is the following:

curl -i -X PUT -H "Content-Type:application/json " -d '{ "active ": "02 " }' 'http://192.168.1.12:8080/blah/blah/blah'

(note the extra spaces before the second of each pair of quotation marks.

If someone could please tell me what I'm doing wrong, I would very much appreciate it.
Cheers

sprintf_quotation_example.maxpat
Max Patch

-geoff

Source Audio's icon

\\\" \\\"
I would rather use shell instead of aka.shell .

Max Patch
Copy patch and select New From Clipboard in Max.