You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that methods assertTrue() and assertFalse() in decode_bool.go [1] do not recognize "\r" (CR) as a legitimate separator so gojay fails to parse json which boolean argument in the last line with trailing CRLF.
{
....
"status": true
}
Replacing "\r\n" with just "\n" or completely removing "\r\n" make it work because both "\n" and "}" appear in a list of valid separators.
It seems that methods assertTrue() and assertFalse() in decode_bool.go [1] do not recognize "\r" (CR) as a legitimate separator so gojay fails to parse json which boolean argument in the last line with trailing CRLF.
{
....
"status": true
}
Replacing "\r\n" with just "\n" or completely removing "\r\n" make it work because both "\n" and "}" appear in a list of valid separators.
[1] https://github.com/francoispqt/gojay/blob/master/decode_bool.go#L117
The text was updated successfully, but these errors were encountered: