how to loop in append table by ajax

i have this code and working but the result in append table return duplicated rows
how i can return records without duplicate rows ?
[enter image description here][1]
[1]: https://i.stack.imgur.com/nujQ8.png

`
$.ajax({
url: “”,
type: “POST”,
dataType: “json”,
data: {stdID: stID},

            success: function(response){ 
           var len = response.length;
            
       // Read values
       $("#tabledata").html("");//افراغ الجدول
                    var _qnumber = response[0].qnumber;
                    var _total = response[0].total;
                    var _isprint = response[0].is_print;
                    if(_isprint ==1){_isprint='نعم'}else{_isprint='لا'};
                    var _istest = response[0].istest;
                    if(_istest ==1){_istest='نعم'}else{_istest='لا'};
                    var _voice = response[0].voice;
                    for (var option = 0; option <response.length; option++) {
                      $('#tabledata').append(
                        '<tr><td>'+ _qnumber + '</td><td>' + _total + '</td><td>' 
                        + _istest 
                        + '</td><td>'
                        + _isprint
                        + '</td><td>'
                        + _voice
                        + '</td></tr>')
       }
                
    }// response success 

`