[Top][All Lists]

[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: Thu, 10 May 2018 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
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]