1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

#26 do not enforce pointer as optional

This commit is contained in:
Tao Wen
2017-05-23 18:46:11 +08:00
parent 7e046e6aa7
commit fc44cb2d91
2 changed files with 12 additions and 2 deletions

View File

@ -108,8 +108,11 @@ func (iter *Iterator) readObjectStart() bool {
}
iter.unreadByte()
return true
} else if c == 'n' {
iter.skipFixedBytes(3)
return false
}
iter.reportError("readObjectStart", "expect { ")
iter.reportError("readObjectStart", "expect { or n")
return false
}