JSONArray を作成し、それを文字列に解析していますが、コードの代わりに文字列が含まれているため、必要に応じて出力されません。
for(Place place: places){
locations.put("new google.maps.LatLng("+place.getContactData().getLatitude()+","+place.getContactData().getLongitude()+")");
}
return locations.toString();
次のように出力されますが、JavaScriptによって正しく解釈される["new google.maps.LatLng(53.5608,9.96357)","new google.maps.LatLng(53.5608,9.96357)"]
ように、引用符なしで必要です。[new google.maps.LatLng(53.5608,9.96357),new google.maps.LatLng(53.5608,9.96357)]