Learning the Basics of jQuery.getJSON

Learning the Basics of jQuery.getJSON

info.json
 
  1. {
      "name": "John"
    }

 
 the script
 
  1. $(document).ready(function(){
  2.       $.getJSON('info.json', { hobby: "chess" }, function(json) {
  3.       alert("name: " + json.name + " hobby: " + json.hobby);
  4.       });
  5. });
 
This script will successfully display "John" in the alert, but not "chess."   It displays "undefined" instead of "chess."
 
Any ideas what I'm doing wrong?