[jQuery] Odd issues passing JSON to server

[jQuery] Odd issues passing JSON to server


I'm not sure if I have a server side issue or a client side issue. The
problem is that I am generating a JSON string in my plugin, and passing
it to a php page (though the back end shouldn't matter in the long run).
I can see that a parameter is infact passed, but trying to decode that
string is giving me nothing - not even errors. Sooo, I'm stuck not
knowing if the json string is invalid, or I'm doing something wrong on PHP.
I have a pastie with the code in question at http://pastie.org/338246.
Any tips are appreciated. Thanks.
Shawn