jgallen23/cookie-monster — pull request #2 by nicogranelli (2011-10-25 04:39:04+00:00)
Title: Support for objects as cookie value

You will notice that I don't just stringify the object, instead I put it inside another object. This is because some edgy cases, like the string being used as value is "[something" or "{something". By the way I added a bunch of test, trying all the cases I could think of.

PS: The error message when the browser don't have window.JSON needs some work :)