We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Result Array() function doesn't do what the comments says.
nonArrayData := "{\"jsonrpc\":\"2.0\",\"method\":\"subscription\",\"params\":{\"channel\":\"funny_channel\",\"data\":{\"name\":\"Jason\",\"company\":\"good_company\",\"number\":12345}}}" parsed := gjson.Parse(nonArrayData) for _, doc := range parsed.Get("params.data").Array() { log.Println(doc.Raw) // not called } arrayData := "{\"jsonrpc\":\"2.0\",\"method\":\"subscription\",\"params\":{\"channel\":\"funny_channel\",\"data\":[{\"name\":\"Jason\",\"company\":\"good_company\",\"number\":12345}]}}" parsed = gjson.Parse(arrayData) for _, doc := range parsed.Get("params.data").Array() { log.Println(doc.Raw) }
Think the issue is this i.e. it skips too much. Either update the function commends or please don't skip '{'
The text was updated successfully, but these errors were encountered:
4fe1916
Thanks for reporting! I found the issue and fixed it in v1.9.4
Sorry, something went wrong.
No branches or pull requests
The Result Array() function doesn't do what the comments says.
Think the issue is this i.e. it skips too much. Either update the function commends or please don't skip '{'
The text was updated successfully, but these errors were encountered: