Did you know that WordPress theme.json, block.json and other *.json files have their reference schema files which allow your code editor to autocomplete and lint the syntax? Simply add a $schema element to the top of the JSON content and let the editor do the job.