Closed qligier closed 2 years ago
Ah! I wonder if it is what is causing https://github.com/antlr/antlr4-lab/issues/51 Can you check? Then we can close as part of the same PR.
It seems so, but it's quite hard to debug a 10 Mo JSON response. The more complete patch here would be to use JsonWriter or Gson to safely create the JSON representation.
closing in favor of #57
Error messages are injected unescaped in the tree (
result.tree.kids[].error
). If there's a forbidden character, the JSON response becomes invalid. It happens by example if a quoted string is unmatched by the parserFor example: