If you open the JSON file, then general errors will be underlined.
You can also define a schema file and drag it to your JSON file, or enter the “$schema” property manually. Then Visual Studio will validate the file according to associated schema — see: https://visualstudiomagazine.com/articles/2018/01/24/json-messages-schema.aspx, for example.
What kind of validation do you need?