I bumped into this project while looking for a lib to solve marshaling my poly struct to JSON (and back from it too). But my poly struct is recursive. Say like
type Shape interface {}
type Square struct {
...
Child Shape
}
type Triangle struct {
...
Child Shape
}
So Child would not marshal/unmarshal as expected here. Any way to support it?
I bumped into this project while looking for a lib to solve marshaling my poly struct to JSON (and back from it too). But my poly struct is recursive. Say like
So
Childwould not marshal/unmarshal as expected here. Any way to support it?