terraform output コマンドの -json オプションを使用すると、結果を JSON 形式で出力することができます。
terraform output
-json
terraform output -json