public function send_response($no_more_output = false)
{
$json_data_array = $this->prepare_json_array($no_more_output);
if (empty($json_data_array)) {
return;
}
$json_data = json_encode($json_data_array);
// Try to push content to the browser
print str_pad(' ', 4096) . "\n";
print $json_data . "\n\n";
flush();
}