diff --git a/pylsp/python_lsp.py b/pylsp/python_lsp.py index c606a7c6..528ffdb4 100644 --- a/pylsp/python_lsp.py +++ b/pylsp/python_lsp.py @@ -9,7 +9,11 @@ from functools import partial from typing import Any, Dict, List -import ujson as json +try: + import ujson as json +except Exception: + import json + from pylsp_jsonrpc.dispatchers import MethodDispatcher from pylsp_jsonrpc.endpoint import Endpoint from pylsp_jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter