void ensureFieldsField() throws IOException {
            if (hasFieldsField.get()) return;
            generator().writeObjectFieldStart(FIELDS);
            hasFieldsField.set(true);
        }
Call before rendering a field to the generator
container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java