emacs-devel
[Top][All Lists]
Advanced

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

Re: JSON Parsing Edge Case


From: Noam Postavsky
Subject: Re: JSON Parsing Edge Case
Date: Thu, 10 May 2018 19:56:47 -0400

On 10 May 2018 at 19:48, T.V Raman <address@hidden> wrote:
> 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")

With json-read, and (json-read-from-string "{\"quote\": \"1\"}"), I get

 ((quote . "1"))

json-parse-string and json-parse-buffer don't seem to exist for me
(using the latest master branch).



reply via email to

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