<?php
session_start();
header('Content-Type: application/json');

if (isset($_SESSION['dispose_items'])) {
    echo json_encode(array_values($_SESSION['dispose_items']));
} else {
    echo json_encode([]);
}
?>
