Problem with Ajax .get ?

Problem with Ajax .get ?

What is wrong with this?

Trying to return text data from an ajax call. Getting a syntax error

$.get('APAJAX.PGM', ({vendor:$vend, invoice:$inv})
     function($text) { }, 'text');