emacs-devel
[Top][All Lists]
Advanced

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

JSON Parsing Edge Case


From: T.V Raman
Subject: JSON Parsing Edge Case
Date: 2018年5月10日 16:48:05 -0700

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 "'"
-- 

reply via email to

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

AltStyle によって変換されたページ (->オリジナル) /