Where is the JSON API of the LanguageTool command line tool documented?
The usage of the command line tools says:
--json print results as JSON
Ideally, it could give the URL of the JSON spec.
My Vim plugin still uses the XML API which has been marked as deprecated for a while.
It’s about time switch it to the JSON API.
Unlike the XML API, the JSON API does not provide the line & column numbers.
Instead, I see it provide “offset” and “length” (presumably counted in characters from the start of the document, although I don’t know how it e.g. count Unicode composing or characters. I could experiment to find out, but I’m hoping it’s documented somewhere. The fact that it does not provide the same info as XML is a bit annoying, Why not add the line & column numbers in JSON API?