Кажется, я не могу получить ответ json, когда я делаю ajax-запрос к моему php-файлу;

Я попытался отправить запрос ajax и получить ответ json.

Мой Javascript:

$(".edit_data").click(function(){ var id= $(this).attr("id"); alert(id); $.ajax({ url: "edit.php", type: "POST", data: {edit_id: id}, dataType: "jsonp", contentType: "application/json; charset=utf-8", success: function(data){ var title=data.title; var body=data.body; $("#mtitle").val(data.title); $("#msummernote").val(data.body); } }); alert('t'.title); alert('b'.body); alert('hey'); $('#myModal').modal('show'); }); 

оповещение для заголовка и тела говорит, что они не определены, и мой edit.php:

 {amp}lt;?php include 'db_connect.php'; $id= $_POST['edit_id']; $stmt= "SELECT * FROM blog WHERE id=".$id; $result= $conn-{amp}gt;query($stmt); $rows = $result-{amp}gt;fetch_assoc(); echo json_encode($rows); ?{amp}gt; 

в моем HTML у меня есть такая таблица:

  {amp}lt;table class="table-striped" style="width:80%"{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;th{amp}gt;Title{amp}lt;/th{amp}gt; {amp}lt;th{amp}gt;Author{amp}lt;/th{amp}gt; {amp}lt;/tr{amp}gt; {amp}lt;?php while($rows = $result-{amp}gt;fetch_assoc()) { ?{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;td{amp}gt;{amp}lt;?php echo $rows['title']?{amp}gt;{amp}lt;/td{amp}gt; {amp}lt;td{amp}gt;{amp}lt;?php echo $rows['uname']?{amp}gt;{amp}lt;/td{amp}gt; {amp}lt;td{amp}gt;{amp}lt;button name="edit" id="{amp}lt;?php echo $rows['id']; ?{amp}gt;" type="button" class=" edit_data btn btn-warning" {amp}gt;Edit {amp}lt;/button{amp}gt;{amp}lt;/td{amp}gt; {amp}lt;td{amp}gt;{amp}lt;button name="delete" id="{amp}lt;?php echo $rows["id"]; ?{amp}gt;" class="btn btn-danger"{amp}gt;Delete{amp}lt;/button{amp}gt;{amp}lt;/td{amp}gt; {amp}lt;/tr{amp}gt; {amp}lt;?php } ?{amp}gt; {amp}lt;/table{amp}gt; and the bootstrap modal i am trying to populate: 
  {amp}lt;!-- Modal Header --{amp}gt; {amp}lt;div class="modal-header"{amp}gt; {amp}lt;h4 class="modal-title"{amp}gt;Edit Post{amp}lt;/h4{amp}gt; {amp}lt;button type="button" class="close" data-dismiss="modal"{amp}gt;{amp}amp;times;{amp}lt;/button{amp}gt; {amp}lt;/div{amp}gt; {amp}lt;!-- Modal body --{amp}gt; {amp}lt;div class="modal-body"{amp}gt; {amp}lt;form method="post" id="insert_form"{amp}gt; {amp}lt;label{amp}gt; Title: {amp}lt;/label{amp}gt; {amp}lt;input name="mtitle" class="form-control" type="text" required placeholder="Title"/{amp}gt; {amp}lt;br{amp}gt;{amp}lt;br{amp}gt; {amp}lt;label{amp}gt; Header Image: {amp}lt;/label{amp}gt; {amp}lt;input class="form-control" type="file" name="file" id="file"{amp}gt;{amp}lt;br{amp}gt;{amp}lt;br{amp}gt; {amp}lt;label{amp}gt; Body: {amp}lt;/label{amp}gt; {amp}lt;textarea name="content" id="msummernote"{amp}gt;{amp}lt;/textarea{amp}gt; {amp}lt;button class="btn btn-primary" name="submit"{amp}gt; Submit {amp}lt;/button{amp}gt; {amp}lt;/form{amp}gt; {amp}lt;/div{amp}gt; {amp}lt;!-- Modal footer --{amp}gt; {amp}lt;div class="modal-footer"{amp}gt; {amp}lt;button type="button" class="btn btn-danger" data-dismiss="modal"{amp}gt;Close{amp}lt;/button{amp}gt; {amp}lt;/div{amp}gt; {amp}lt;/div{amp}gt; {amp}lt;/div{amp}gt; 
 I am trying to populate the field with id mtitle with the title i receive from the json and the field with id msummernote with the body i recieve from the json