In PHP you will build your array like this
$data = array( 'aps'=>array(
'badge'=> 10,
'alert'=> 'Hello world!',
'sound'=> 'cat.caf'
),
'job_id'=> 1
);
echo json_encode($data);
Output
{
"aps": {
"badge": 10,
"alert": "Hello world!",
"sound": "cat.caf"
},
"job_id": 1
}