How to Draw Polylines or Use AddDirections in Google Maps for Outsystems?

I'm having problem drawing polylines.

This is my CoordinatesJSON paramaters:

SyntaxEditor Code Snippet

"
[{lat: 25.774, lng: -80.190}, {lat: 18.466, lng: -66.118}, {lat: 32.321, lng: -64.757}, {lat: 25.774, lng: -80.190}]

"

Error says:
Unexpected token l in JSON at position 4    at JSON.parse (<anonymous>)


Do I need to use JSON Serialize component? 

Hi 

When you use the JSON Serialize, the way it works is demonstrated in GoogleMapsDemo . And below is an example of output.

Regards,