how to find Matching Bracket

Hello, I’ve just started using CodeMirror6. Now I have a scenario where I hope to quickly find the matching symbol and get the line number it’s on. For example, with the following JSON:

1  {
2   { 
3        a: 1
4   }
5 }

Assuming we know that the symbol on line 2 is {, expect to find the matching symbol } on line 4. Does CodeMirror6 have a method similar to findMatchingBracket for this purpose?

Yes, it does.