src/components/Responder.php
protected function send_response_body() {

		if ( 'json' === $this->response_type ) {

			$response_json = wp_json_encode( $this->callback_response );

			if ( false !== $response_json ) {
				echo $response_json;
			}

		} elseif ( 'plain' === $this->response_type ) {
			echo $this->callback_response;
		}
	}
protected function send_response_body() {

		if ( 'json' === $this->response_type ) {

			$response_json = wp_json_encode( $this->callback_response );

			if ( false !== $response_json ) {
				echo $response_json;
			}

		} elseif ( 'plain' === $this->response_type ) {
			echo $this->callback_response;
		}
	}
Sends the response body in the appropriate format.