ZainChen / vscode-json

Json for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ZainChen.json
MIT License
112 stars 38 forks source link

The extension is broken #33

Open droslean opened 1 year ago

droslean commented 1 year ago

I just installed it in vscode version 1.72.0`. I opened my JSON file, but the extension is completely broken.

image

IzzeddinTeeti commented 1 year ago

I have the same problem

snoski commented 3 weeks ago

I had this same problem, but I realized that there were syntax issues in my file. It simply didn't recognize the file until the syntax issue was fixed. Once I fixed the issues the tree in the left side-bar was populated.

If you're like me, you probably expected one of the functions of this extension to be a linter that would help you discover these syntax issues, but apparently that isn't one of its features (if I'm understanding correctly). I imagine that there are JSON linter extensions, but I found this online linter/prettifier to be very helpful: https://jsonlint.com

I'm not sure if that was the cause of the OP's issue or not, but hopefully people arriving here with a similar issue may find this helpful. :-)