One of the first values you would put in your theme.json is the version.
"version": 2
This field describes the format of the
theme.json
file. The current version is v2, introduced in WordPress 5.9. It also works with the current Gutenberg plugin.
Note: if you use v1 it auto-compiles, from now on use v2.