Hi,
First of all you need to write c function to store the object value in a parameter.
Hope this link helps you better, in this they explained where you need to write c function. look into this document and try to resolve your issue.
http://www.perftesting.co.uk/ajax-truclient-protocol-tips-and-tricks/2012/04/23/