my $json = quotemeta( {"auth":{"RAX-KSKEY:apiKeyCredentials":{"username":$USERNAME, "apiKey":$API_KEY}}} ); #### my $json = quotemeta( {"auth" => {"RAX-KSKEY:apiKeyCredentials" => {"username" => $USERNAME, "apiKey" => $API_KEY}}} );