<?php

$__database = AdvancedBan::getDatabase( );

$response = json_encode([
	"PunishmentHistory" => $__database->getData("PunishmentHistory"),
	"Punishments" => $__database->getData("Punishments")
]);

die($response);
<?php

$__database = AdvancedBan::getDatabase( );

$response = json_encode([
	"PunishmentHistory" => $__database->getData("PunishmentHistory"),
	"Punishments" => $__database->getData("Punishments")
]);

header("Content-Type: application/json");
die($response);
Add appropriate header for response data
Add appropriate header for response data
