[Cialug] Including JSON with CURL call

Jared Brees fromj2sitsme at msn.com
Tue Jan 14 23:25:31 UTC 2020


I believe this depends on the shell. However, with my Ubuntu-bash, since all the double-quotes are inside the single set of single-quotes, no further escapement is needed.



________________________________
From: Cialug <cialug-bounces at cialug.org> on behalf of Derek Etnyre <detnyre at mac.com>
Sent: Tuesday, January 14, 2020 14:46
To: cialug at cialug.org <cialug at cialug.org>
Subject: [Cialug] Including JSON with CURL call

When making a CURL post call from command line, can I specify json data like:

-d ‘{“filePath”:”/temp/DerekTest.nitro-x”, “cleanIds”:false, “deploy”: true, “importData”:true}’

Or do I need to delimit the quotes?

Derek Etnyre

_______________________________________________
Cialug mailing list
Cialug at cialug.org
https://www.cialug.org/cgi-bin/mailman/listinfo/cialug


More information about the Cialug mailing list