From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Hack for JSON sequences with trailing commas? Date: Wed, 1 Aug 2018 14:22:41 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1533108082 28396 195.159.176.226 (1 Aug 2018 07:21:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 07:21:22 +0000 (UTC) Cc: help-gnu-emacs To: Barry Margolin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 09:21:18 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fklRe-0007H2-BH for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 09:21:18 +0200 Original-Received: from localhost ([::1]:33823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fklTk-0001QY-VD for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 03:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fklTD-0001QT-7I for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 03:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fklTC-0005I8-Fu for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 03:22:55 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:38824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fklTC-0005Hc-9Y for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 03:22:54 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id v8-v6so32814199oie.5 for ; Wed, 01 Aug 2018 00:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4tbaRxPCT8+8fJKTNtgPGR24JNIzwiS063AYEBpU4EE=; b=RF+XvvMGqk7/J/MLCd8TtvZacuhxKwodTduED0maL/Ek3ebQmEFfnqsrlBxqSqofQK 1XtrKIARCyrZNBwSwM8aTv1/C1ZJL2byzXOQOTpgfBaKwJr+Nn5ZFZeF6sX3g9T81k0k 7NUmBaWd+5/5sLI6p1xU7lt+XX4sHQz04c8cJ9+7G6zBL8fl+Artst27Lk75x/BbQ+BQ GqITICB6tpH9MFY8aLg+OEf8WPz/5izWfqxruXroy2KlCUYcz0fuQsdACiYW/l3uPfEk 14hVyg6F3RoAmK+M5mP3Qkminj4CWB+x6ItZUKR0yPydDdD9AltoerQnui855WpX9mWJ oTPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4tbaRxPCT8+8fJKTNtgPGR24JNIzwiS063AYEBpU4EE=; b=JIIy9x1HzueRzzpV40hV9ZVnNyt9B8U5z9i8peuGXHFwPD4fumdqkneZuVQXRE8JWO t+xOcOXaW2Klb7f+piTJAnK303l6GYEZ3ZugSGW2kJI81LoCnQ/6z4iYjPE6ec5EhpZy G0B+FxLmyHR7beWx+AIpMot2JMczJCFrHq8Hy4f4yTA+K67ovTlm6ujxAAabKHDn9fag 0GsBSjiH4vL0pNjQ1c4cey9naYOZMoATfX4Dryzpw7Qt/vs7t7hvMqjQiSctDZ9LZO4f vHSc/NIEmrdxs9sLLyeg5V1mF3kRpVdSpZJ1FYPDyZFTrBIaGNCYyeqRWL0AEpa46V9e icUA== X-Gm-Message-State: AOUpUlG7JNe73wOdi58MY8PlOgbD+MKpXDKq7R1G9ihaJNbxw+T3lHNx kgpouGBQJhpPk1ATFyUCzXefAF05huTj7PemBexkig== X-Google-Smtp-Source: AAOMgpfJKqcytOHLtijuHYUhgfCqD+Q/OaOmzYDbLgsYCPdY4Cqgh+3nrCkdC8+D47rJ6k71sYlRFQptHYQCGOAcWFQ= X-Received: by 2002:aca:a94c:: with SMTP id s73-v6mr2239780oie.68.1533108173276; Wed, 01 Aug 2018 00:22:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117618 Archived-At: On Wed, Aug 1, 2018 at 1:55 PM Barry Margolin wrote: > JSON is a very limited subset of Javascript notation for literals. [=E2= =80=A6] > > For instance, Javascript allows both single and double quotes to be used > as string delimiters, but JSON only allows double quotes. Javascript > allows object keys to be written without quoting them if they're valid > JS names, JSON requires all keys to be quoted. And JS allows trailing > commas, JSON doesn't. More importantly, Javascript allows comments and string concatenation expressions, while JSON doesn=E2=80=99t. Which makes it a really bad choice for hand-written configuration files.