Did not get value as per My ID get all database data : Hii I want Edit my form so i want data as per passed id which i selected but i did Not get data as per my requirement.

==>JSON Eroor Screen Shot **https://imgur.com/a/vD2fKpK**

==> Ajax Code

     var url = document.URL;
     var id = url.substring(url.lastIndexOf('=') + 1);
    $.ajax({
            method:"post",
            data:id,
            url: 'get.php',
            success: function (data) {
                console.log(data);
                data = $.parseJSON(data);
              
            }
          });
       $(function () {
                $('#datetimepicker1').datetimepicker();
            });
          });  


==> get.php 

         if(isset($_POST['data'])) {
    
        $getUsers = $connect->prepare("SELECT * FROM registration WHERE 
        id='".$_POST['data']."'");
        $getUsers->execute();

        $users = $getUsers->fetchAll(PDO::FETCH_ASSOC);
        echo json_encode($users);
      }