6

Is it possible to validate JSON file using JSON schema in Emacs with flymake/flycheck? What would be the best validator to detect schema-related error and notify it to Emacs with appropriate error message and location?

user2884138
  • 61
  • 1
  • 2

2 Answers2

2

Theres is flymake-json, which uses jsonlint. It can be installed with package-install.

arvidj
  • 775
  • 5
  • 25
1

Flycheck has support for JSON: https://www.flycheck.org/en/latest/languages.html#json
Also lsp-mode can be used with either flymake or flycheck: https://emacs-lsp.github.io/lsp-mode/page/lsp-json/

albert200000
  • 335
  • 3
  • 13