3 ms·
First you check for a beginning [ Then you parse elements one by one. While your particular library may not support it, it's not a very hard thing to implement
by im3w1l 6y ago
First you check for a beginning [
Then you parse elements one by one. While your particular library may not support it, it's not a very hard thing to implement
["a", 1, "b
A parser could at this point give us the "a" and the 1, but not the "b" since the string could have more content.
You probably want the parser to give you an object that behaves as a collection you can for-each loop over, and that blocks when there is no more data available.