$table = array(
'cols' => array(
array('type' => 'string', 'label' => 'City'),
array('type' => 'string', 'label' => 'Color'),
array('type' => 'string', 'label' => 'Size'),
array('type' => 'string', 'role' => 'tooltip', 'p' => array('html' => true))
),
'rows' => array()
);
while ($row = mysql_fetch_assoc($query)) {
$table['rows'][] = array('c' => array(
array('v' => "{$row['strasse_strassennummer']} {$row['plz']} {$row['stadt']}", 'f' => $row['stadt']),
array('v' => $markersize),
array('v' => $markercolor),
array('v' => "Verbund: {$row['verbund']}")
));
}
echo json_encode($table, JSON_NUMERIC_CHECK);