Using a literal like:
{"key": txxxx}
will cause the parser to assume it is about to read the boolean literal true but it will never match and hence become stuck.
Add stricter checks to throw errors on invalid literals
This is part of the JSON standard so definitely need to add this. There should also be support for arrays as top level objects as this is part of JSON standard also.