Is anybody able to get suggestions after typing x.
using code below? E.g. name
import json
from types import SimpleNamespace
data = '{"name": "John Smith", "hometown": {"name": "New York", "id": 123}}'
# Parse JSON into an object with attributes corresponding to dict keys.
x = json.loads(data, object_hook=lambda d: SimpleNamespace(**d))
print(x.name, x.hometown.name, x.hometown.id)
The upper example stems from here
Another promising approach is presented here, yet no auto-completion as well
I'm using lsp-pyright