$polygonArray); $output = $json->encode($data); header("Content-type:application/x-json; charset=utf-8"); echo $output; ?>