Subject: bug#15097: 24.3.50; json.el can't encode lists of lists

From: Glenn Morris <[email-masked]>
Date: Tue, 20 Aug 2013 13:04:31 -0400

Rolando Pereira wrote:

> Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import json
>>>> json.dumps([[1,2,3]])
> '[[1, 2, 3]]'

Well, maybe that's the actual issue, since json.el and the python
version apparently disagree about what to do in such cases. Eg:

(json-encode '(("a" 2 3)))  ->  "{\"a\":[2, 3]}"
json.dumps([["a",2,3]])     ->  [["a", 2, 3]]

(Context is at http://debbugs.gnu.org/15097 )