name; $res[2][] = $o->type.($o->party_year?", ".$o->party_year:""); } echo json_encode($res); ?>