<?php
error_reporting(E_ALL | E_STRICT);
header("Content-type: application/json;charset=utf-8");
$responseJson = array();
$responseJson["rspCd"] = "S200";
$responseJson["rspMsg"] = "정상응답";
$responseJson["rspDtti"] = date("Ymdhis");
$dataJson = array();
for($i=0; $i<5; $i++)
{
/*
$arrDataJson = array();
$arrDataJson["param1"] = "v1_".$i;
$arrDataJson["param2"] = "v2_".$i;
$arrDataJson["param3"] = "v3_".$i;
$arrDataJson["param4"] = "v4_".$i;
$arrDataJson["param5"] = "v5_".$i;
*/
$dataJson[$i] = $arrDataJson;
$dataJson[$i]["idx"] = $i;
$dataJson[$i]["param1"] = "v1_".$i;
$dataJson[$i]["param2"] = "v2_".$i;
$dataJson[$i]["param3"] = "v3_".$i;
$dataJson[$i]["param4"] = "v4_".$i;
$dataJson[$i]["param5"] = "v5_".$i;
}
$responseJson["data"] = $dataJson;
$response = json_encode($responseJson, JSON_UNESCAPED_UNICODE);
echo $response;
?>