pub fn format_json(entries: &[Entry]) -> Result<String, Error>
Serialize entries (skipping directory headers) as pretty JSON.