{"1":{"key1":"value1"},"2":{"key2":"value2"}}
$some_array = array('key1'=>'value1','key2'=>'value2');
$i = 1;
$arr = array();
foreach($some_array as $key=>$value){
$arr[$i][$key] = $value;
$i++;
}
$some_json = json_encode($arr);
print_r($some_json);