[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch: strict key encoding for json.el
From: |
Edward O'Connor |
Subject: |
patch: strict key encoding for json.el |
Date: |
Mon, 20 Aug 2012 14:15:08 -0700 |
Hi,
Nic Ferrier pointed out that the JSON encoder can produce invalid JSON
object keys in some cases. To guard against this, the attached patch
adds a new function, `json-encode-key', which throws if it's object
doesn't map to a JSON string. It then uses this function everywhere it
creates JSON objects. I've only lightly tested it, but "It Should
Work(TM)".
Ted
json-strict-key-encoding.patch
Description: Binary data
- patch: strict key encoding for json.el,
Edward O'Connor <=