[jQuery] jQuery allow encoding into json?

[jQuery] jQuery allow encoding into json?


could not find a function for it.
Will be creating a complicated js object on client side. Want to
encode that object into json, and stuff the value into a hidden form
field for POST.
anybody help a nubie?