foundry has a writeJSON cheatcode. This can be leveraged so that instead of needing to copy and paste addresses that are output on the terminal, the addresses can be written directly to their corresponding JSON file.
Example code here: https://github.com/volt-protocol/ethereum-credit-guild/blob/main/test/ECGTest.sol#L50-L82
foundry has a writeJSON cheatcode. This can be leveraged so that instead of needing to copy and paste addresses that are output on the terminal, the addresses can be written directly to their corresponding JSON file.
Example code here: https://github.com/volt-protocol/ethereum-credit-guild/blob/main/test/ECGTest.sol#L50-L82