JSON not working pls help

JSON not working pls help

Dear All

Please refer


JQuery code

  1. $('#relationwithmaratheid').change( function () {
  2.  alert($('#relationwithmaratheid').val()); // display the id when drop down changes which is correctly displayed
  3.  
  4.   $.getJSON("relationwithmarathejsonfill.php", {id: $('#relationwithmaratheid').val()}, function(data){
  5.             $('#sondiv').text(data['son']);
  6. $('#daughterdiv').text(data['daughter']);
  7. $('#husbanddiv').text(data['husband']);
  8.         });    
  9.        
  10. });


The div's

  1.                           <div id="sondiv">Content for  id "sondiv" Goes Here</div>
  2.                           <div id="daughterdiv">Content for  id "daughterdiv" Goes Here</div> 
  3.                           <div id="husbanddiv">Content for  id "Husbanddiv" Goes Here</div> 

relationwithmarathejsonfill.php

  1. <?php
  2. //relationwithmarathejsonfill.php
  3.   session_start();
  4.  
  5.  include_once("includes/dbconnect.php");
  6. include_once("includes/config.inc.php");
  7. $id=$_REQUEST['id'];
  8.   echo $id; 
  9.         $sql = mysql_query("select * from  relationwithmarathe  where id=2");
  10.          echo mysql_num_rows($sql);
  11.         if(mysql_num_rows($sql))
  12.         {
  13.           $data = mysql_fetch_array($sql);
  14.             echo json_encode($data);
  15.         
  16.         }
  17. ?> 

if we type 

we can see valued like 
51{"0":"2","id":"2","1":"0","status":"0","2":"1","son":"1","3":"0","husband":"0","4":"0","daughter":"0","5":"0","surname":"0","6":"1","gender":"1","7":"0","self":"0","8":"0","srno":"0","9":"Son Marathe Mother","name":"Son Marathe Mother","10":null,"brief":null,"11":null,"detail":null,"12":null,"actualimage":null,"13":null,"tinyimage":null,"14":null,"smallimage":null,"15":null,"bigimage":null,"16":null,"smallwimage":null,"17":null,"bigwimage":null,"18":"2015-06-10 04:58:18","dttime":"2015-06-10 04:58:18"}

but the div's are not populated
 Database Table structure

Table structure for table `relationwithmarathe`
--

CREATE TABLE IF NOT EXISTS `relationwithmarathe` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` tinyint(1) DEFAULT '0',
  `son` tinyint(2) DEFAULT '0',
  `husband` int(11) DEFAULT '0',
  `daughter` tinyint(2) DEFAULT '0',
  `surname` tinyint(2) DEFAULT '0',
  `gender` tinyint(3) DEFAULT '0',
  `self` tinyint(2) DEFAULT '0',
  `srno` int(13) DEFAULT '0',
  `name` varchar(255) DEFAULT NULL,
  `brief` text,
  `detail` text,
  `actualimage` varchar(255) DEFAULT NULL,
  `tinyimage` varchar(255) DEFAULT NULL,
  `smallimage` varchar(255) DEFAULT NULL,
  `bigimage` varchar(255) DEFAULT NULL,
  `smallwimage` varchar(255) DEFAULT NULL,
  `bigwimage` varchar(255) DEFAULT NULL,
  `dttime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;