<?php
// Simple test to check the API output
$_GET['config_id'] = 16;
$_GET['config_name'] = 'Summary Table - Hocki Klocki - Heat 1 - Wszystkie kategorie';
$_GET['format'] = 'json';

ob_start();
include 'api/summary_table_api.php';
$output = ob_get_clean();

echo "Output length: " . strlen($output) . "\n";
echo "First 200 chars:\n";
echo substr($output, 0, 200) . "\n";
echo "Last 200 chars:\n";
echo substr($output, -200) . "\n";

$json = json_decode($output, true);
if ($json === null) {
    echo "JSON Error: " . json_last_error_msg() . "\n";
} else {
    echo "JSON is valid\n";
}
?>
