Datatype of jQuery Ajax Post

Datatype of jQuery Ajax Post

The file is successfully parsed without dataType: "JSON".

With dataType: "JSON". , it does NOT work!!!

WHY?????



[getfromPHP.php]

$(document).ready(function () {
  var data_json = {jenre:'jenres', querynum:'q_num'};
  
             $.ajax({
                  type: "POST",
        url: "json_encode.php",
        data: data_json,
        //dataType: "JSON", 
          success: function(result){                                        
              alert(data.fruits[0]); // apple      

            }//success
     })//ajax
});//document


[json_encode.php]

$data = array();
$data['fruits'] = array('apple','banana','cherry');

 echo json_encode($data);