From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vibhav Pant Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] json: Add support for encoding structs Date: Tue, 25 Apr 2017 18:10:59 +0530 Message-ID: References: <874lxeq6mz.fsf@lifelogs.com> <4af766e7-b909-e40c-ce9d-4db303f37059@lanl.gov> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1493124088 8696 195.159.176.226 (25 Apr 2017 12:41:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2017 12:41:28 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 14:41:24 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 1d2zmW-00028l-4S for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2017 14:41:24 +0200 Original-Received: from localhost ([::1]:49178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2zmc-0002bb-0Y for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2017 08:41:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2zmU-0002bW-EI for emacs-devel@gnu.org; Tue, 25 Apr 2017 08:41:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2zmT-00067U-Fl for emacs-devel@gnu.org; Tue, 25 Apr 2017 08:41:22 -0400 Original-Received: from mail-yw0-x233.google.com ([2607:f8b0:4002:c05::233]:32899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2zmT-00067J-B1 for emacs-devel@gnu.org; Tue, 25 Apr 2017 08:41:21 -0400 Original-Received: by mail-yw0-x233.google.com with SMTP id 203so92078780ywe.0 for ; Tue, 25 Apr 2017 05:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IWXysonCfZBX/QXf//f0beIOHJBvQvguieCWADVeK5w=; b=k+A1YctkIQhykgGebStivIl+e39r5fBqPk1zrlKLuRu0TVxYXueqdsYwrJ4AXE6aPy 762PVVvL41p5McH5Htu5/UDQN/7EnZpLg8qOCZ4Tll/LrGQyohk7PbT4PDgHd9ATCRKw inuMXT0aXvK7J9Gn4U1RtJ7Ydd6zDbnxQQJshefcCrQNGqh6NRh+OJMCJap6C+ecs4ft cFVa+s/v4B2ruabC3vSQV1rLvHtD3R+NrHi+Mp3C4nuACVi2HkYbi0cyZiTSFapMX9ur LwaoxSRXeN+tY26sOHtRI8k/HF8NyoWuYHrsEeBRty9j9d/Vb2ACs6q3rZ+p23Yxshzd ewJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IWXysonCfZBX/QXf//f0beIOHJBvQvguieCWADVeK5w=; b=ZQzwVKUisLfk/BJbRpQ2P4j6ePnl7piuRjz/LxLdO4/mMBT478U+Wt+p5Te+NHrkEn vDavJqnICotIck5wygul6B/Vz8pdGKDpAoVGR/Q+1QEInAipfHyF0cjWyMgw7kn9A4FF +atp3TqAy/9nvQ5NxmLWQ+dJNn0tp/BG+e5W3D7PEMYbHOFxnWDWXKTl4IuR+C1NZES8 cWR+czdZU3Rh/mGbN0cm1Wc/fiI0Ms8QkspRH4uPNpsOT1O6QngvnNG+gAigRnwTKadA 3DigIYcNx3Azo7voImwDhRWzlS29FfXk4boYS/IIawJAZWCijPzqPitwkZ5OPErcU3el Txfg== X-Gm-Message-State: AN3rC/5BCPbx+SNI+Q/VIslquP/+jHXOlTWjRsDZeuLvbodiwgCdQoQK r8kqp4xz6btyA3oRqEE3xWXKTNdN+A== X-Received: by 10.129.196.77 with SMTP id s13mr4933582ywj.139.1493124080664; Tue, 25 Apr 2017 05:41:20 -0700 (PDT) Original-Received: by 10.129.117.85 with HTTP; Tue, 25 Apr 2017 05:40:59 -0700 (PDT) In-Reply-To: <4af766e7-b909-e40c-ce9d-4db303f37059@lanl.gov> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::233 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:214283 Archived-At: On Tue, Apr 25, 2017 at 4:22 AM, Davis Herring wrote: > You could use :json "" or :json 'ignore as the special value. IIRC, the empty string is a valid JSON key (`JSON.parse(`{"":1}`)` works in JS). Symbols are also considered a valid type according to `json-encode-key'. -- Vibhav Pant vibhavp@gmail.com