Pass WP_Query instance to the AJAX JSON result.