Title: why isn't cookie stored in json?
Tags: json;cookies
Question: I went through some tips about read cookies with Regex. Then I found a jQuery plugin to handle that like json. But way isn't cookies stored in json? Isn't json more convient?

Here is the accepted answer: The Cookie header itself is a "normal" HTTP header, and follows the usual conventions there, which were established before JSON became popular.
The value of the cookie is completely up to your application, you could use JSON there.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2011:00:12/24/11', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<json><cookies>', 'Title': "why isn't cookie stored in json?", 'ViewCount': 67, 'id': 8622402, 'user_AboutMe': '<p>ChenYong, 1991, Coder of CoffeeScript &amp; Cirru</p>\n', 'user_AccountId': 474099.0, 'user_DisplayName': 'jiyinyiyong', 'user_Reputation': 4450.0, 'user_Views': 294.0, 'user_id': 883571.0}}