$.ajax({ url: "ajax/json.php", data: { name: name, value: value }, dataType: 'json', success: function(data) { } });