$.getJSON(url("data/json.php"), {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); 
 $.ajax({ url: base + "data/jsonp.php", dataType: "jsonp", success: function(data){ ok( data.data, "JSON results returned (GET, no callback)" ); plus(); } });  $.ajax({ url: base + "data/jsonp.php?callback=?", dataType: "jsonp", success: function(data){ ok( data.data, "JSON results returned (GET, url callback)" ); plus(); } });  $.ajax({ url: base + "data/jsonp.php", dataType: "jsonp", data: "callback=?", success: function(data){ ok( data.data, "JSON results returned (GET, data callback)" ); plus(); } });  $.ajax({ url: base + "data/jsonp.php", dataType: "jsonp", data: { callback: "?" }, success: function(data){ ok( data.data, "JSON results returned (GET, data obj callback)" ); plus(); } 
test("$.getJSON(String, Hash, Function) - JSON array", function() {	expect(4);	stop();	$.getJSON(url("data/json.php"), {json: "array"}, function(json) {	  ok( json[0].name == 'John', 'Check JSON: first, name' );	  ok( json[0].age == 21, 'Check JSON: first, age' );	  ok( json[1].name == 'Peter', 'Check JSON: second, name' );	  ok( json[1].age == 25, 'Check JSON: second, age' );	  start();	});});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/aee221d33c2db2c76639dabeca2b1e3d022e348e/ajax.js/buggy/test/unit/ajax.js