emacs-devel
[Top][All Lists]
Advanced

[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

Attachment: json-strict-key-encoding.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]