code: func (namespaces TemplateFuncsNamespaces) MarshalJSON() ([]byte, error) {
  	var buf bytes.Buffer
  
  	buf.WriteString("{")
  
  	for i, ns := range namespaces {
  		if i != 0 {
  			buf.WriteString(",")
  		}
  		b, err := ns.toJSON()
  		if err != nil {
  			return nil, err
  		}
  		buf.Write(b)
  	}
  
  	buf.WriteString("}")
  
  	return buf.Bytes(), nil
  }
docs: // MarshalJSON returns the JSON encoding of namespaces.