In which macOS version was the -json flag/switch added in system_profiler?

apple.stackexchange https://apple.stackexchange.com/questions/388377

  •  27-05-2021
  •  | 
  •  

سؤال

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