in types/types.go [74:94]
func (k Kind) MarshalJSON() ([]byte, error) {
kindStr := "UNKNOWN"
switch k {
case AliasKind:
kindStr = "ALIAS"
case BasicKind:
kindStr = "BASIC"
case InterfaceKind:
kindStr = "INTERFACE"
case MapKind:
kindStr = "MAP"
case PointerKind:
kindStr = "POINTER"
case SliceKind:
kindStr = "SLICE"
case StructKind:
kindStr = "STRUCT"
}
return json.Marshal(kindStr)
}