From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: JSON->lisp Mapping: Hash vs AList Date: Tue, 19 Dec 2017 19:08:18 +0200 Message-ID: <831sjqprwd.fsf@gnu.org> References: <838te5uvee.fsf@gnu.org> <838te1qrkq.fsf@gnu.org> <834lopqft0.fsf@gnu.org> <83k1xjpz5a.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1513703369 18953 195.159.176.226 (19 Dec 2017 17:09:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Dec 2017 17:09:29 +0000 (UTC) Cc: emacs-devel@gnu.org, raman@google.com To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 19 18:09:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRLOP-0004MJ-6R for ged-emacs-devel@m.gmane.org; Tue, 19 Dec 2017 18:09:25 +0100 Original-Received: from localhost ([::1]:55147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLQK-0008TJ-D3 for ged-emacs-devel@m.gmane.org; Tue, 19 Dec 2017 12:11:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLNG-0006Fl-Om for emacs-devel@gnu.org; Tue, 19 Dec 2017 12:08:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRLN9-0005VS-Se for emacs-devel@gnu.org; Tue, 19 Dec 2017 12:08:14 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLN9-0005VJ-Pw; Tue, 19 Dec 2017 12:08:07 -0500 Original-Received: from [176.228.60.248] (port=2319 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eRLN9-0008IK-8V; Tue, 19 Dec 2017 12:08:07 -0500 In-reply-to: (message from Philipp Stephani on Mon, 18 Dec 2017 20:59:39 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221250 Archived-At: > From: Philipp Stephani > Date: Mon, 18 Dec 2017 20:59:39 +0000 > Cc: raman@google.com, emacs-devel@gnu.org > > -@defun json-parse-string string > +@defun json-parse-string string &key (object-type 'hash-table) > This function parses the JSON value in @var{string}, which must be a > Lisp string. > @end defun > > -@defun json-parse-buffer > +@defun json-parse-buffer &key (object-type @code{hash-table}) The first @defun needs the same change as you did in the second. Otherwise, LGTM; thanks.