I still think it's likely the OP is taking the wrong approach by trying to hand-roll a JSON decoder, so I did want to point out a few issues with your code - hopefully thereby also pointing out some of the pitfalls of hand-rolled approaches.
In reply to Re^2: How to Use Pack to Convert UTF-16 Surrogate Pairs to UTF-8? (updated)
by haukex
in thread How to Use Pack to Convert UTF-16 Surrogate Pairs to UTF-8?
by WingedKnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |