private function cleanTable($table, $json)
    {
        if ($json[$table]["tca"] && count($json[$table]["tca"]) < 1) {
            unset($json[$table]["tca"]);
        }
        if ($json[$table]["sql"] && count($json[$table]["sql"]) < 1) {
            unset($json[$table]["sql"]);
        }
        if ($json[$table] && count($json[$table]) < 1) {
            unset($json[$table]);
        }
        return $json;
    }