Validates command-mapping JSON files or objects.