protected int findEndOfKey() {
        for (int peekI=s.position(); peekI<s.string().length(); peekI++) {
            if (s.string().charAt(peekI)==':' || s.string().charAt(peekI)==',')
                return peekI;
        }
        return -1;
    }
Parses a map on the form <code>{key1:value1,key2:value2 ...}</code>

@param string the textual representation of the map
vespajlib/src/main/java/com/yahoo/text/SimpleMapParser.java