class JsonUtil {

    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);
        }
    }

}