function getSerializedJson($contourLines, $timestamp, $updatedTime)
{
    global $bandHelper;
    global $txnAt;
    $responseHelper = new ResponseHelper();
    $responseObject = $responseHelper->getResponseObject($contourLines, $timestamp, $bandHelper);
    $responseObject['gen_time'] = $updatedTime;
    $responseObject['txnAt'] = $txnAt;
    // send appropriate json response
    return json_encode($responseObject);
}
function prepareResponseObject($contourLines, $timestamp)
{
    global $bandHelper;
    $responseHelper = new ResponseHelper();
    return $responseHelper->getResponseObject($contourLines, $timestamp, $bandHelper);
}