<?php header('Content-Type: application/json'); $file = 'zzz.json'; if (file_exists($file)) { $objetTache = json_decode(file_get_contents($file), true); echo json_encode(['status' => 'success', 'objetTache' => $objetTache]); } else { echo json_encode(['status' => 'error', 'message' => 'Le fichier zzz.json n\'existe pas.']); } ?>