def show(args):
    """Convert and print JSON.

    Argument:

        args: arguments object
    """
    domain = check_infile(args.infile)
    action = True
    try:
        print(json.dumps(set_json(domain, action, filename=args.infile),
                         sort_keys=True, indent=2))
    except UnicodeDecodeError as e:
        sys.stderr.write("ERROR: \"%s\" is invalid format file.\n"
                         % args.infile)
        exit(1)
Convert and print JSON.

    Argument:

        args: arguments object