Y
Hacker News
new
|
ask
|
show
|
jobs
by
tracnar
252 days ago
Don't you need to wait for some kind of delimiter (like ",", "]", "}", newline, EOF) before parsing something else than a string?
1 comments
rictic
252 days ago
Only for numbers! Strings, objects, arrays, true, false, and null all have an unambiguous ending.
link
stefs
251 days ago
but you don't do this for strings either, as shown in the examples - partial strings are pushed even though they're not yet ended:
{"name": "Ale"}
link
rictic
251 days ago
Oh this isn't about the public API, it's about the internal logic of the parser.
link