I like JSON in that it's structually reasonably stable; even under hostile content, it will stay the same. That can't be said of other formatting, that might get confused when newline, spaces, nulls and other "hostile" separators are used.
That's specifically one of the reasons why you never can reliably parse ls in even remotely potentially not pristine and safe environments.
That's specifically one of the reasons why you never can reliably parse ls in even remotely potentially not pristine and safe environments.