code: func fieldName(field *ast.Field) string {
  	jsonTag := ""
  	if field.Tag != nil {
  		jsonTag = reflect.StructTag(field.Tag.Value[1 : len(field.Tag.Value)-1]).Get("json") // Delete first and last quotation
  		if strings.Contains(jsonTag, "inline") {
  			return "-"
  		}
  	}
  
  	jsonTag = strings.Split(jsonTag, ",")[0] // This can return "-"
  	if jsonTag == "" {
  		if field.Names != nil {
  			return field.Names[0].Name
  		}
  		return field.Type.(*ast.Ident).Name
  	}
  	return jsonTag
  }
docs: // fieldName returns the name of the field as it should appear in JSON format
  // "-" indicates that this field is not part of the JSON representation