all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* JSON Parsing Edge Case
@ 2018-05-10 23:48 T.V Raman
  2018-05-10 23:56 ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: T.V Raman @ 2018-05-10 23:48 UTC (permalink / raw)
  To: emacs-devel

The following happens with both json-read  -- the elisp implementation
as well as json-parse-string  implemented in C --

Try this json fragment --  by typing it into an empty buffer:

{"quote": "1"}

The above is a json dict with one key -- "quote" -- with value 1.

Parsing this into an emacs alist -- either with (json-read) or
(json-parse-buffer)
yields  the following lisp structure -- 

('. "1")

the list structure is really 

(quote . "1")

but the elisp reader has turned that symbol "quote" into an "'"
-- 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-11  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-10 23:48 JSON Parsing Edge Case T.V Raman
2018-05-10 23:56 ` Noam Postavsky
2018-05-11  2:30   ` T.V Raman
2018-05-11  8:45     ` Basil L. Contovounesios

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.