public static void addNumericTokensFromString(String string, NumericInItem out) {
        if (string == null) {
            return;
        }
        var s = new ParsableString(string);
        while (!s.atEnd()) {
            long token = s.longTo(s.positionOrEnd(','));
            out.addToken(token);
            s.passOptional(',');
        }
    }
Parser of parameter lists on the form {key:value, key:value} or [[key,value], [key,value], ...]

@author bratseth
container-search/src/main/java/com/yahoo/search/yql/ParameterListParser.java