Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*json.RawMessage as map value doesn't work #235

Open
zplzpl opened this issue Oct 15, 2017 · 1 comment
Open

*json.RawMessage as map value doesn't work #235

zplzpl opened this issue Oct 15, 2017 · 1 comment

Comments

@zplzpl
Copy link

zplzpl commented Oct 15, 2017

type Aggs map[string]*json.RawMessage

ffjson error: (*errors.errorString)json.RawMessage: UnmarshalJSON on nil pointer offset=48212 line=1 char=48212

@erikdubbelboer
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants