Ajax Helper Functions in WordPress 3.5 wp_send_json, wp_send_json_success and wp_send_json_error. These functions would be very useful when dealing with Ajax requests