Interactive setup for JSON LSP development environment
Sets up JSON LSP with vscode-json-language-server, jq, and prettier for validation and formatting. Use this to enable intelligent JSON editing with autocomplete and error checking in Claude Code.
/plugin marketplace add zircote/json-lsp/plugin install json-lsp@zircote-lspThis command will configure your JSON development environment with vscode-json-language-server and essential tools.
First, verify Node.js is installed:
node --version
npm --version
npm install -g vscode-langservers-extracted
This package includes vscode-json-language-server along with HTML, CSS, and ESLint language servers.
# JSON validation and processing
brew install jq
# Formatting
npm install -g prettier
vscode-json-language-server --version
jq --version
prettier --version
export ENABLE_LSP_TOOL=1
Test the LSP integration:
# Create a test file
cat > test_lsp.json << 'EOF'
{
"name": "test",
"version": "1.0.0",
"features": [
"validation",
"formatting"
]
}
EOF
# Run jq validation
jq empty test_lsp.json
# Run prettier
prettier --write test_lsp.json
# Clean up
rm test_lsp.json