A pre-commit hook that validates JSON files contain valid $schema references and validates the JSON data against the referenced schema.
Once you've created a JSON Schema that describes a JSON document, you can use it both in Visual Studio -- to provide guidance when creating JSON documents -- and in your code to validate the messages ...