Google Address Validation API (JSON issue)

Google Address Validation API (JSON issue)

Hello, 

I am trying to build address verification with Google API as per instructions here - Validate an address  |  Address Validation API  |  Google Developers

I am required to pass JSON body as follows:
curl -X POST -d '{
 
"address": {
   
"regionCode": "US",
   
"locality": "Mountain View",
   
"addressLines": ["1600 Amphitheatre Pkwy"]
 
}
}' \
-H 'Content-Type: application/json' \
"https://addressvalidation.googleapis.com/v1:validateAddress?key=YOUR_API_KEY"
How would this be done in deluge? I am trying the following and I get an error: Invalid JSON payload received
void addressVal()
{
	addr = Map();
	addr.put({"address":{"regionCode":"US","locality":"Mountain View","administrativeArea":"CA","postalCode":"94043","addressLines":{"1600 Amphitheatre Pkwy"}},"enableUspsCass":true});
	
	address = "https://addressvalidation.googleapis.com/v1:validateAddress?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
	response = invokeurl
	[
		url :address
		type :POST
		parameters:addr
	];
	info response;
}

Any ideas on how to properly pass JSON with the address?
Thank you!