Skip to main content
Back to Extensions Directory
coc-json icon

Json extension for coc.nvim

Installation CommandVim prompt
:CocInstall coc-json
GitHub owner
Neoclide
Version
v1.9.8
npm package
coc-json
Requirements
coc >= 0.0.80
License
MIT
Repository
GitHub
npm latest published 2026-08-24Registry checked 2026-08-24Registry summary

Published Package Summary

coc-json

coc-json

Json language server extension for coc.nvim.

The server code is extracted from VSCode, which uses vscode-json-languageservice

For highlight of jsonc filetype, you may need jsonc.vim

Install

In your vim/neovim, run the following command:

:CocInstall coc-json

Features

Same as VSCode.

All features of vscode-json-languageservice are supported.

  • doCompletion for JSON properties and values based on the document's JSON schema.
  • doHover for values based on descriptions in the document's JSON schema.
  • Document Symbols for quick navigation to properties in the document.
  • Document Colors for showing color decorators on values representing colors.
  • Code Formatting supporting ranges and formatting the whole document.
  • Diagnostics (Validation) are pushed for all open documents
    • syntax errors
    • structural validation based on the document's JSON schema.

FAQ

How to suppress error [json 521] [e] Comments are not permitted in JSON?

You can configure your vim to make that file with jsonc filetype to allow comment.

How to add custom schema definitions/properties?

You have two choices:

Quotes are hidden?

This is not caused by coc-json, you may checkout the conceallevel option.

License

MIT

Read the complete README
  • Json extension for coc.nvim
Activation Events
  • onLanguage:json
  • onLanguage:jsonc
  • onCommand:json.clearCache
Developer Resources

Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.

Open Developer Guide

Version History

This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.