public static char getCloseBracket(char openBracket) {
        char closeBracket;
        if (openBracket == '(') {
            closeBracket = ')';
        } else if (openBracket == '[') {
            closeBracket = ']';
        } else if (openBracket == '{') {
            closeBracket = '}';
        } else {
            throw new IllegalArgumentException("Unsupported bracket: " + openBracket);
        }

        return closeBracket;
    }
Simple and un-protected JSON parser.

@param json non-empty JSON string
@return object array, Boolean, Number, null, String, or Map
@throws IllegalArgumentException when JSON string is null or empty
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseUtils.java