I found my trouble
> $(function ()
> {
> $.getJSON("http://foo.com/json/?callback=?", {ref: document.referrer,
> loc: window.location});
>
> });
jQuery serializes the document.referrer & window.location as Object()
with properties
I resolved this by:
$.getJSON("http://foo.com/json/?callback=?", {ref: String
(document.referrer),
loc: String(window.location)});

