ohler55 / ojg

Optimized JSON for Go
MIT License
857 stars 49 forks source link

oj.Marshal fails on embedded interface #115

Closed Orbsynated closed 1 year ago

Orbsynated commented 1 year ago

oj.Marshal fails with the following error when called on structs with embedded interface: reflect: NumField of non-struct type <embedded-interface-type>.

I think this is related to this https://github.com/ohler55/ojg/issues/71

ohler55 commented 1 year ago

Would you mind putting together a simple test I can use to debug?

ohler55 commented 1 year ago

Are you able to provide an example? If not I'll close this issue.