質問

Which version of macOS (OS X) first included -json switch in system_profiler?

役に立ちましたか?

解決

It was introduced in Catalina.

JSON wasn’t standardized until 2013 and Apple rarely implements new technology that hasn’t been standardized. Looking at a man page from 10.9 (Mavericks) which was also released in 2013, the -json flag was not available.

It’s also not available in Mojave as the man page for that version doesn’t indicate the flag either. I’ve tested it in Catalina and confirmed it exists there

ライセンス: CC-BY-SA帰属
所属していません apple.stackexchange
scroll top