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

Problem decoding input if it starts with [ #129

Open
xocasdashdash opened this issue Sep 4, 2019 · 0 comments
Open

Problem decoding input if it starts with [ #129

xocasdashdash opened this issue Sep 4, 2019 · 0 comments

Comments

@xocasdashdash
Copy link

So I have a process that's writing this to a file

[123] - A log message

When I try (and fail) to decode it using gojay like this:

err := dec.DecodeObject(lm)

The returned error is nil but the error in this file on this lines
(dec.err) show that it's an invalid input ("Cannot unmarshal JSON to type '*decoder.LogMessage'")

This generates an error in the error handling code because there's no error returned.

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

1 participant