-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Implement Get()
traversing into struct{} as requested by @lestrrat:
- if the type implements
json.Marshaler
, callMarshalJSON
, convert result tojson.RawMessage
and then browse into that (requires Get() inside json.RawMessage #2) - else follow
encoding/json
mapping rules using struct tags to map the struct as if it was amap[string]interface{}
(an easy (but inefficient) solution could calljson.Marshal()
and then follow Get() inside json.RawMessage #2)