package
Language service for JSON
npm install vscode-json-languageserviceGitHub-flavored package documentation.
Across all versions, last 30 days.
29,259,023 in 30 days
Runtime metadata.
Latest published Aug 21, 2026
Estimated unpacked size across 6 packages.
1.2 MB
Includes dependencies.
microsoft-oss-releases
microsoft-oss-publishing@microsoft.com
^0.0.18
0.0.18
4.0.0-next.1
3.3.1
^3.18.0
3.18.5
1.0.16
JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.
The vscode-json-languageservice contains the language smarts behind the JSON editing experience of Visual Studio Code and the Monaco editor.
For the complete API see jsonLanguageService.ts and jsonLanguageTypes.ts
npm install --save vscode-json-languageserviceSee sample.ts for an example on how to use the JSON language service.
To run the sample use yarn sample
git clone https://github.com/microsoft/vscode-json-languageservice
cd vscode-json-languageservice
yarnUse yarn test to compile and run tests
jsonCompletion.ts
yarn link vscode-json-languageservice in vscode/extensions/json-language-features/server to run VSCode with the latest changes from vscode-json-languageservicevscode/scripts/code.sh|bat) and open a .json filevscode-json-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the json-language-features path

jsonCompletion.ts.json file