JSON command-line parsing and checking for Mac OS X