Added --check-json command line argument, and test for it.