title: VSCode json schema fileMatch pattern
body: <p>In VSCode, I'm trying to add a sjson schema to a project I have. My <code>.vscode/settings.json</code> file is this:</p>
  
  <pre><code>{
      "json.schemas": [
          {
              "fileMatch": [
                  "/*.json"
              ],
              "url": "https://path/to/url.json"
          }
      ]
  }
  </code></pre>
  
  <p>```</p>
  
  <p>This works, but it's currently applying to all .json files in all folders in the project, which I don't want. I want it to <strong>only apply to all .json files in the root directory</strong>.  What do I have to put in the <code>fileMatch</code> property to enable this?</p>
  
  <h2>Update</h2>
  
  <p>Have tried the following. These work, but apply to every .json file:</p>
  
  <ul>
  <li><code>"/*.json"</code></li>
  <li><code>"*.json"</code></li>
  </ul>
  
  <p>These don't work at all (no .json file gets the schema):</p>
  
  <ul>
  <li><code>"${workspaceFolder}/*.json"</code></li>
  <li><code>"${workspaceFolder}*.json"</code></li>
  <li><code>"${workspaceFolder}\\*.json"</code></li>
  <li>The above 3 without the <code>{}</code></li>
  <li>The above 4 with <code>workspaceRoot</code></li>
  </ul>