|
|
|
|
|
by dullgiulio
2062 days ago
|
|
You have to implement UnmarshalJSON. Between each attempt to deserialize into a possible struct, be careful to return on errors that are not JSON serialisation errors (for example caused by reading from the underlying Reader, etc.) It's ugly and verbose but there is no need to use empty interface. |
|