refactoring ValidateCommand to remove jsonlint dependency on php-compatinfo