I have a cookie whose value is a JSON encoded string. When I retrieve the cookie using next-cookies, I get an object instead of a string. I wouldn't expect the JSON string to be parsed automatically, and it doesn't seem to be documented.
Cookies header is set to: blah=%7B%22foo%22%3A%22asdf%22%7D
I have a cookie whose value is a JSON encoded string. When I retrieve the cookie using
next-cookies
, I get an object instead of a string. I wouldn't expect the JSON string to be parsed automatically, and it doesn't seem to be documented.Cookies header is set to:
blah=%7B%22foo%22%3A%22asdf%22%7D
Expected
nextCookie
to return:Instead got: