all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Rolando Pereira <rolando_pereira@sapo.pt>
Cc: 15097@debbugs.gnu.org, Edward O'Connor <hober0@gmail.com>
Subject: bug#15097: 24.3.50; json.el can't encode lists of lists
Date: Tue, 20 Aug 2013 13:04:31 -0400	[thread overview]
Message-ID: <401u5o47kw.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87d2p9coz4.fsf@sapo.pt> (Rolando Pereira's message of "Mon, 19 Aug 2013 23:09:19 +0100")

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	other threads:[~2013-08-20 17:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 22:44 bug#15097: 24.3.50; json.el can't encode lists of lists Rolando Pereira
2013-08-15  1:55 ` Glenn Morris
2013-08-19 22:09   ` Rolando Pereira
2013-08-19 22:09   ` Rolando Pereira
2013-08-20 17:04     ` Glenn Morris [this message]
2013-08-20 20:16       ` Edward O'Connor
2014-03-23  6:40 ` bug#15097: Wontfix, apparently Daniel Colascione

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=401u5o47kw.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=15097@debbugs.gnu.org \
    --cc=hober0@gmail.com \
    --cc=rolando_pereira@sapo.pt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.