What is tasks.json in VS Code?
tasks.json is a configuration file containing JSON code used by VS Code that describes "tasks" like build tasks and test tasks that VS Code can run. For example, if you define a default build task for VS Code, you can run it with the keyboard shortcut Ctrl+Shift+B.
Where is the tasks.json file?
The tasks.json file is saved in .vscode/tasks.json in your workspace folder.

tasks.json file is located in VS Code.It's generated automatically when you create a task via VS Code's GUI, so if you find this file without having manually created it, it's because VS Code created it for you.
Note: if you're using Linux Mint, Nemo doesn't display dotfiles by default, so you may not be able to find the .vscode folder in your workspace when you open the workspace folder in Nemo instead of in VS Code.