Redis as a JSON store
For the life of me I do not understand the JSON obsession. When I was young and naive, JSON indeed looked cool because it is both human and computer readable. Until you run into some of its limitations.<p>For example, AFAIK there is still no agreement on how to handle binary data, e.g. what do you do with:<p><pre><code>  &gt;&gt;&gt; json.dumps([&quot;\xb8\xc3\xb6\xbb&quot;])
  Traceback (most recent call last):
  ...
  UnicodeDecodeError: &#x27;utf8&#x27; codec can&#x27;t decode byte 0xb8 in position 0: invalid start byte
</code></pre>
You can base64-encode it or do a number of other things, but then that&#x27;s outside the JSON standard, and suddenly it isn&#x27;t the flexible encoding standard it seemed at first...