ffjson
ffjson copied to clipboard
*json.RawMessage as map value doesn't work
type Aggs map[string]*json.RawMessage
ffjson error: (*errors.errorString)json.RawMessage: UnmarshalJSON on nil pointer offset=48212 line=1 char=48212
Maybe try this until it gets fixed:
type Aggs map[string]json.RawMessage
Or do you really need it to be a pointer? Since json.RawMessage
is just a []byte
a pointer is usually not necessary.