- json_encode: documentation ( source)
<?php
$emails = [0 => ['Customer Service' => 'Customerservice@sonance.com'], 1 => ['Technical Support' => 'Techsupprt@sonance.com'], 2 => ['Webmaster' => 'webmaster@sonance.com']];
echo json_encode($emails);