当用户登陆我们的网站时,会创建一个cookie。我需要访问此cookie并将其插入到对象中。但是,cookie就是以这种方式出现的:
%7B%22tpl%22%3A%22243%22%2C%22offer%22%3A%22596%22%2C%22userid%22%3A%227035%22%2C%22mediaid%22%3A%223066%22%2C%22r%22%3A%2222784176%22%2C%22id%22%3A%22%22%2C%22region%22%3A%22LA%22%7D
如何将其转换为更具可读性的内容,如:
{"key" : "value"}