- Get the first element of arrary
{{- $zookeeper_first := index $config.zookeeper_servers 0 -}}
- Convert to Json
{{ toJson $config.nimbus_seeds }}
- Parsing array of dict with detecting , for last elemet
{{ range $index, $element := $config.bootstrap_servers -}}
{{- if $index -}},{{- end -}}
{{- $element -}}
{{- end }}