void getSettings(Query q) {
            if (q == null) {
                init();
                return;
            }
            var props = q.properties();
            this.debugRendering = props.getBoolean(DEBUG_RENDERING_KEY, false);
            this.jsonDeepMaps = props.getBoolean(WRAP_DEEP_MAPS, true);
            this.jsonWsets = props.getBoolean(WRAP_WSETS, true);
            this.enableRawAsBase64 = props.getBoolean(RAW_AS_BASE64, true);

            // we may need more finetuning, but for now use the same query parameters here:
            this.jsonMapsAll = props.getBoolean(WRAP_DEEP_MAPS, true);
            this.jsonWsetsAll = props.getBoolean(WRAP_WSETS, true);
            this.tensorOptions = new JsonFormat.EncodeOptions(
                    q.getPresentation().getTensorShortForm(),
                    q.getPresentation().getTensorDirectValues(),
                    q.getPresentation().getTensorHexDense());
        }
JSON renderer for search results.

@author Steinar Knutsen
@author bratseth
container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java