PHP mempercantik JSON

echo json_encode($data, JSON_PRETTY_PRINT);
Sleepy Squirrel