private static String readAndCensorIndexes(String file) throws IOException {
        StringBuilder b = new StringBuilder();
        try (BufferedReader r = IOUtils.createReader(file)) {
            int character;
            int lastChar = -1;
            boolean lastWasNewline = false;
            boolean inBrackets = false;
            while (-1 != (character = r.read())) {
                // skip empty lines
                if (character == '\n') {
                    if (lastWasNewline) continue;
                    lastWasNewline = true;
                }
                else {
                    lastWasNewline = false;
                }

                // skip quoted strings
                if (character == '"') {
                    b.appendCodePoint(character);
                    while (-1 != (character = r.read()) && character != '"') {
                        b.appendCodePoint(character);
                    }
                }

                // skip bracket content
                if (character == ']')
                    inBrackets = false;
                if (! inBrackets)
                    b.appendCodePoint(character);
                if (character == '[' && lastChar != '{')
                    inBrackets = true;
                lastChar = character;
            }
        }
        return b.toString();
    }
This is to avoid having to keep those pesky array index numbers in the config format up to date
as new entries are added and removed.
config-model/src/test/java/com/yahoo/schema/AbstractSchemaTestCase.java