re").text(data);
        var getDataKunjungan = JSON.parse(data);
         var col = [];
         for (var i = 0; i < getDataKunjungan.length; i++) {
             for (var key in getDataKunjungan[i]) {
                 if (col.indexOf(key) === -1) {
                     col.push(key);
                 }
             }
         }

         // CREATE DYNAMIC TABLE.
         var table = document.createElement("table");

         // CREATE HTML TABLE HEADER ROW USING THE EXTRACTED HEADERS ABOVE.

         var t