Currently, I am examining a JavaScript file on this website. It contains the following code:
let source = fs.readFileSync("contracts.json");
let contracts = JSON.parse(source)["contracts"];
I'm curious about what exactly the JSON.parse function is doing in this snippet. Can you provide some insight?