top | item 45574529

(no title)

rictic | 4 months ago

Only for numbers! Strings, objects, arrays, true, false, and null all have an unambiguous ending.

discuss

order

stefs|4 months 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"}

rictic|4 months ago

Oh this isn't about the public API, it's about the internal logic of the parser.