Run file --help-json-schema and parse its output, cached until the file changes. Text around the JSON object (a stray log line) is ignored.
file --help-json-schema
Run
file --help-json-schemaand parse its output, cached until the file changes. Text around the JSON object (a stray log line) is ignored.