addServer ("host_ubuntu1",1978); $keys = array ('t4761','t4762','t4763', 't4764','t4765','t4766', 't4767','t4768','t4769'); $dict_aa = kvalue_to_dict_proc ($mc,$keys); $json_str = json_encode ($dict_aa); echo $json_str; // --------------------------------------------------------------------- ?>