[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13518: 24.2; json-encode fails on list-of-alists
From: |
Dmitry Gutov |
Subject: |
bug#13518: 24.2; json-encode fails on list-of-alists |
Date: |
Mon, 25 Nov 2013 00:57:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Version: 24.4
Simon Schubert <2@0x2c.org> writes:
> The following function fixes this issue:
>
> (defun json-alist-p (list)
> "Non-null if and only if LIST is an alist with simple keys."
> (while (consp list)
> (setq list (if (and (consp (car list))
> (atom (caar list)))
> (cdr list)
> 'not-alist)))
> (null list))
Applied, thanks!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#13518: 24.2; json-encode fails on list-of-alists,
Dmitry Gutov <=