public static <T> T objectFromCommandLineArgument(String argument, Class<T> clazz) throws Exception {
        if (openBraceComesFirst(argument)) {
            return JSON_SERDE.readValue(argument, clazz);
        } else {
            return JSON_SERDE.readValue(new File(argument), clazz);
        }
    }
Read a JSON object from a command-line argument.  This can take the form of a path to
a file containing the JSON object, or simply the raw JSON object itself.  We will assume
that if the string is a valid JSON object, the latter is true.  If you want to specify a
file name containing an open brace, you can force it to be interpreted as a file name be
prefixing a ./ or full path.

@param argument      The command-line argument.
@param clazz         The class of the object to be read.
@param <T>           The object type.
@return              The object which we read.
trogdor/src/main/java/org/apache/kafka/trogdor/common/JsonUtil.java