bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Glenn Morris
Subject: bug#15097: 24.3.50; json.el can't encode lists of lists
Date: Tue, 20 Aug 2013 13:04:31 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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 )






reply via email to

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