Your json string looks correct. So it should be possible to store it in a cookie. Also storing in a cookie should not cause an error at all. So there must be something in your code which is wrong but you need to show it to us.
Btw. The string is much more readable if you put it in single quotes