Via switches `-j` and `--json`. See https://blog.kellybrazil.com/2019/11/26/bringing-the-unix-philosophy-to-the-21st-century/ and https://blog.kellybrazil.com/2021/12/03/tips-on-adding-json-output-to-your-cli-app/.