1 2 3
Non-recursive JSON stream tokenizer. It uses 1 bit per nesting depth to track whether the level represents an array [] or an object {}