{"id":13479356,"url":"https://github.com/neoclide/coc-json","last_synced_at":"2025-06-21T11:09:17.907Z","repository":{"id":40306116,"uuid":"147791600","full_name":"neoclide/coc-json","owner":"neoclide","description":"Json language extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2025-04-14T15:03:51.000Z","size":474,"stargazers_count":237,"open_issues_count":3,"forks_count":24,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-22T10:22:12.888Z","etag":null,"topics":["coc","json","neovim","vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neoclide.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T08:04:25.000Z","updated_at":"2025-04-15T14:46:18.000Z","dependencies_parsed_at":"2024-01-13T19:21:48.431Z","dependency_job_id":"8a5ce8b8-8531-4321-a32a-2570729428bb","html_url":"https://github.com/neoclide/coc-json","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/neoclide/coc-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neoclide","download_url":"https://codeload.github.com/neoclide/coc-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoclide%2Fcoc-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110622,"owners_count":23111066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coc","json","neovim","vim"],"created_at":"2024-07-31T16:02:14.132Z","updated_at":"2025-06-21T11:09:12.888Z","avatar_url":"https://github.com/neoclide.png","language":"TypeScript","funding_links":[],"categories":["Plugins / Themes / Dependencies","TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-json\n\nJson language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).\n\nThe server code is extracted from VSCode, which uses\n[vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice)\n\nFor highlight of jsonc filetype, you may need [jsonc.vim](https://github.com/neoclide/jsonc.vim)\n\n## Install\n\nIn your vim/neovim, run the following command:\n\n```\n:CocInstall coc-json\n```\n\n## Features\n\nSame as VSCode.\n\nAll features of [vscode-json-languageservice](https://www.npmjs.com/package/vscode-json-languageservice) are supported.\n\n- `doCompletion` for JSON properties and values based on the document's JSON schema.\n- `doHover` for values based on descriptions in the document's JSON schema.\u003cPaste\u003e\n- Document Symbols for quick navigation to properties in the document.\n- Document Colors for showing color decorators on values representing colors.\n- Code Formatting supporting ranges and formatting the whole document.\n- Diagnostics (Validation) are pushed for all open documents\n  - syntax errors\n  - structural validation based on the document's JSON schema.\n\n## Commands\n\n- `json.clearCache`: Clear schema cache.\n- `json.retryResolveSchema`: Retry resolve schema of current buffer.\n- `json.sort`: Sort json document.\n\n## Configuration options\n\n- `json.enable`: Enable json server default: `true`\n- `json.enableDefaultSchemas`: Enable builtin schemas from https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/api/json/catalog.json default: `true`\n- `json.trace.server`: default: `\"off\"`\n  Valid options: [\"off\",\"messages\",\"verbose\"]\n- `json.execArgv`: default: `[]`\n- `json.validate.enable`: Enable/disable JSON validation. default: `true`\n- `json.format.enable`: Enable format for json server default: `true`\n- `json.format.keepLines`: Keep all existing new lines when formatting. default: `false`\n- `json.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons). default: `5000`\n- `json.schemaDownload.enable`: When enabled, JSON schemas can be fetched from http and https locations. default: `true`\n- `json.schemas`: Schemas associations for json files default: `[]`\n\n## FAQ\n\n### How to suppress error `[json 521] [e] Comments are not permitted in JSON`?\n\nYou can configure your vim to make that file with jsonc filetype to allow comment.\n\n### How to add custom schema definitions/properties?\n\nYou have two choices:\n\n- use `$schema` in your json.\n- create json schema file and then configure `json.schemas` in your `coc-settings.json`, check out https://github.com/neoclide/coc-json/blob/06ea3ace3d0c0a8deaa70942d63345718f029612/package.json#L84\n\n### Quotes are hidden?\n\nThis is not caused by coc-json, you may checkout the `conceallevel` option.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoclide%2Fcoc-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneoclide%2Fcoc-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoclide%2Fcoc-json/lists"}