Unfortunately, MetaMask does not support the option to export your key in JSON format. The following guide will show you a workaround on how to do it.
Go on the MetaMask browser extension and click the three-dotted settings icon.
Click on ‘Export Private Key’, confirm with your password and ‘Export as file’. You will download your private key as a CSV file.