Hi,
You can't send object to client directly.
If you want to send more informations , you can join them like this
$msg="$data1|$data2|$name1|$name2"
and split each parts when you get task.ServerData like this:
var parts=task.ServerData.split('|');
var data1=parts[0];
var data2=parts[1];
var name1=parts[2];
var name2=parts[3];
Regards,
Terry