mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Merge pull request #172 from oschwald/greg/json-number-null-fix
Correctly consume the null value for json.Number
This commit is contained in:
@@ -1097,6 +1097,7 @@ func (r *Lexer) JsonNumber() json.Number {
|
||||
case tokenNumber:
|
||||
return json.Number(r.Raw())
|
||||
case tokenNull:
|
||||
r.Null()
|
||||
return json.Number("")
|
||||
default:
|
||||
r.errSyntax()
|
||||
|
||||
Reference in New Issue
Block a user