How can I pass a Java Script object to JQuery getJson callback function along with the data?

How can I pass a Java Script object to JQuery getJson callback function along with the data?


I am calling getJson from a method of an object. When the JSON data
return, it would be very convenient for the call back function to be
able to find the object from which the getJson call was issued because
there is a great deal of context information stored in the object.
FOR NOW, I set a global variable to point to the object before issuing
the getJson call. That is not a satisfactory solution because the
user may push other UI buttons which would issue other calls and
overwrite the global object pointer before the first call returns.
I can see how the ajax function creates a GET request object and I
note that the get request object is passed to the callback function as
this, but I don't know if I could add a pointer to my object to the
get object.
Suggestions, please.
Thanks.
Bill Taylor