? Other Ways to Use json.tool:
1. Format a JSON file:
2. Save formatted output:
3. Validate JSON:
4. Sort keys:
? Alternative Tools:
You could also use:

1. jq (more powerful):

2. Node.js:

3. PHP itself:

php listJson.php | php -r "echo json_encode(json_decode(file_get_contents('php://stdin')), JSON_PRETTY_PRINT);"
? Why We Used It:
In our case, we used it to verify the PHP output was:

? Valid JSON
? Properly formatted
? Includes playlists from subdirectory
? Easy to read and confirm
? Summary:
Part	What It Does	Example Output
php listJson.php	Runs PHP, outputs JSON	["a","b","c"]
|	Passes output to next command	(invisible)
python3 -m json.tool	Formats JSON nicely	[\n  "a",\n  "b",\n  "c"\n]
Result: Beautiful, readable JSON! ?

