[Json] ANN: JSONMinify v1

Stefan Reich <stefan.reich.maker.of.eye@googlemail.com> Sat, 29 March 2014 17:41 UTC

Return-Path: <stefan.reich.maker.of.eye@googlemail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D83F61A06B4 for <json@ietfa.amsl.com>; Sat, 29 Mar 2014 10:41:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.623
X-Spam-Level:
X-Spam-Status: No, score=0.623 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_41=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FYdSgpbaqzPN for <json@ietfa.amsl.com>; Sat, 29 Mar 2014 10:41:07 -0700 (PDT)
Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 49D4F1A06AF for <json@ietf.org>; Sat, 29 Mar 2014 10:41:07 -0700 (PDT)
Received: by mail-wi0-f175.google.com with SMTP id cc10so1767502wib.8 for <json@ietf.org>; Sat, 29 Mar 2014 10:41:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QL/imefvCBbZDp+pART4DXV5M9O8iyBoxN1cpWMOrEA=; b=DLKod+j6oUAjiETyW3nLO6iaLT+y/gz33OA5KfDbNpqJLLbcFEk41FSJ5XusfS/yb7 LTp5gDRAulttQArQRdV+S2fhDU+wTRbKDvp/uMCNFFZZa7tNM1lanF2kEmWSd/f+7Hzm gvqRTmJR/EjLXTy9ECB66/rt44G6y9/G/VV3QuM/NtZTTnw7eN/fXWeKyEYINz8dR+cR oyXEO5UAfqnvF6RdiZjOaWs8PwAPgC9B0sfDjq9Fx8NAiPPYMFZBHL7jdj21KDzQYUfm t/4ok5K0uZITH6r7yui75rhEtgiJXu90XLOz5XYvbJO5YaogiZ/xeXy9sqw570mX2pjZ PgXQ==
MIME-Version: 1.0
X-Received: by 10.180.205.204 with SMTP id li12mr2681983wic.34.1396114864287; Sat, 29 Mar 2014 10:41:04 -0700 (PDT)
Received: by 10.180.36.103 with HTTP; Sat, 29 Mar 2014 10:41:04 -0700 (PDT)
Date: Sat, 29 Mar 2014 18:41:04 +0100
Message-ID: <CAC2-jLEEMX7eS7zrH4RV3rH6vbBpU4w0gcV58Od0_YQD+Tay2A@mail.gmail.com>
From: Stefan Reich <stefan.reich.maker.of.eye@googlemail.com>
To: json@ietf.org
Content-Type: multipart/alternative; boundary="001a11c37bea8d3a2504f5c25265"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/BMMXIjYy59Fak9bsyN2fquvfFmI
Subject: [Json] ANN: JSONMinify v1
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 29 Mar 2014 17:41:47 -0000

Hello "IETF"!

I think you might be an evil organisation. But I am not afraid... not
anymore! :-))

Now to everyone, and to the post: There is a new tool, and a new campaign.
The campaign is called JSON+C, and the tool is JSONMinify. (The bigger
universe behind that is called TinyBrain.)

JSONMinify <http://jsonminify.tinybrain.de> is a Java library *THAT
WORKS*(see below) that removes whitespace and comments from JSON/
*JSON+C* documents (JSON+C = JSON with comments). The implementation has *no
overhead and near-perfect performance*.

JSONMinify *makes it possible to use JSON+C everywhere* regular JSON is
expected--with a very cheap conversion. Actually, prepending JSONMinify will
even SPEED UP your JSON parser (if it's a slow one).

Usage is quite simple:

    String minified = prophecy.common.JSONMinify.minify(originalJSONString);

Note: We'll collect implementations in any other language too - just submit
if you have one.

Note note: I wrote JSONMinify because the other minifiers (notably, the one
at bigaqua.org <http://bigaqua.org/minify_json.html> which still turns out
high at Google), sadly, JUST DON'T WORK.
Link: http://jsonminify.tinybrain.de

Looking for feedback... cheers and have a great summer!! :o))
Stefan