Closed ymmt2005 closed 6 years ago
@ymmt2005 I could not find the method "err := dec.Interface(&i)"
@kpbird
Interface
is available in the master branch:
https://godoc.org/github.com/francoispqt/gojay#Decoder.Interface
Update your copy with go get -u github.com/francoispqt/gojay
then retry.
Hi, Seems it's an error on the assertTrue
, assertFalse
, assertNull
decrementing the counter which causes the error. Will push a fix tomorrow.
Also, @ymmt2005 you don't need a pointer to a map, maps are references already.
Right. Thank you!
You're welcome ;) I just merged the fix to master, closing the issue. Thanks.
@francoispqt Confirmed that the issue is resolved. Thank you! But the commit included some debug logs: https://github.com/francoispqt/gojay/commit/4bfe9a336de8b0f1a350f53bcb5df3d327e6f42b#diff-3a8da64ea46826721c59c499b1184de1R34
Would you mind removing them?
The following code should print:
However, currently it fails for boolean values as follows: