Yes, it’s similar as #63086, I think it’s probably worth double checking all the *-ts-modes works with the latest released tree-sitter version. tree-sitter-json 0.19 does not allow comments or top level values.
On 27 May 2023 at 6:24 PM +0100, Eli Zaretskii <eliz@gnu.org>, wrote:
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Date: Sat, 27 May 2023 16:31:14 +0100


Reproduction:

1. echo '{ "hello" : 1 }' > test.json
2. open /path/to/ns-port-emacs-29 ./test.json --args -q
3. M-x json-ts-mode
4. Observe font-lock is not working in the buffer and the following
message in the *Messages* buffer:

```
Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 2 "(comment) @font-lock-comment-face" "Debug the query with `treesit-query-validate'")
```

I cannot reproduce this: the font-lock works fine for me, and I see no
error messages in *Messages*.

Maybe your JSON grammar is not the latest one or something?

Yuan, could you please look into this?