http://www.perlmonks.org?node_id=1015872


in reply to Interpolating variables in JSON string

It is definitely easier to use a JSON package, as noted, because this authentication request is only going to be the first of many requests that you will be sending to this host. Do as the Romans do ...