From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 5E697BC57 for ; Tue, 30 Mar 2010 04:41:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnECACIBsUvRVd+zkGdsb2JhbACRCIoZCBUBAQEBCQkMBxEDH7B2gWmFMi2ITAEBAwWEewSDHxw X-IronPort-AV: E=Sophos;i="4.51,331,1267398000"; d="scan'208";a="59905852" Received: from mail-iw0-f179.google.com ([209.85.223.179]) by mail4-smtp-sop.national.inria.fr with ESMTP; 30 Mar 2010 04:41:17 +0200 Received: by iwn9 with SMTP id 9so7335589iwn.0 for ; Mon, 29 Mar 2010 19:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=zOxRjbNfwrC+3Oc54GqXCdOEP+ck1TMmMobikpkbh5s=; b=FMQr1v3YOUoqkqEdVTIrGOe3vZJzwG1ng2ghpSIyyMc0Tx36ByKFVul5BIWbGaJLwn PrFucYytFuUVdtiCfKQ6RR3mk/TYjUG4Uj/FdGX/tvFnDAJv2+xJkpWcqdQNc+ovteN0 BPK4DSTx3FM3CJWmZAQ6WzECkC5OF36+7HqXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ohSbjBrN3C0CcE3Une+Q/yK5eokgzP7cG7CNlaYqE0FXpkzDjXs0+LJ7g5AFs2pGpN EUkAeZ0ogrl3DUxx864Veawi48CRahPBLnUnPhnbQVGH6jVli9LUrRHmbAn8/KxX7kC6 AOJD6T5BLjtZo7f/exVnaR/RSiyp8LJ29GM6c= MIME-Version: 1.0 Received: by 10.231.3.228 with HTTP; Mon, 29 Mar 2010 19:41:16 -0700 (PDT) Date: Mon, 29 Mar 2010 19:41:16 -0700 Received: by 10.231.151.197 with SMTP id d5mr2973538ibw.73.1269916876153; Mon, 29 Mar 2010 19:41:16 -0700 (PDT) Message-ID: Subject: [ANN] jsonpat From: Julien Verlaguet To: OCaml List Content-Type: multipart/alternative; boundary=0016e68ea0204c22c50482fb9098 X-Spam: no; 0.00; shell:04 shell:04 suggestions:07 suggestions:07 release:09 release:09 comments:10 comments:10 example:10 example:10 file:11 file:11 julien:12 julien:12 announce:12 --0016e68ea0204c22c50482fb9098 Content-Type: text/plain; charset=ISO-8859-1 I am proud to announce the first release of Jsonpat. Jsonpat is a command line tool that allows to write json to json tranformations, using pattern-matching, directly in the shell. For example given the file, myexample.json : {"name":"ouipk","gender":"M","age":20} {"name":"Cartwright", "age":39 } {"age":24,"name":"Colbert","gender":"M"} The following command extracts the values present in the field "name": $ jsonpat -p '{name:x} -> x' myexample.json "ouipk" "Cartwright" "Colbert" The source code and documentation can be found here: http://oss.wink.com/jsonpat/ Comments and suggestions are more than welcome. Julien Verlaguet --0016e68ea0204c22c50482fb9098 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am proud to announce the first release of Jsonpat.
Jsonpat= is a command line tool that allows to write json to json tranformations, u= sing
pattern-matching, directly in the shell.

For example given the file, myexample.json :
{"name&quo= t;:"ouipk","gender":"M","age":20}
{"name":"Cartwright",
=A0"age&q= uot;:39 }
{"age":24,"name":"Colbert","gender&= quot;:"M"}

The following command extract= s the values present in the field "name":

$ jsonpat -p '{name:x} -> x' myexample.json
"= ;ouipk"
"Cartwright"
"Colbert"=

The source code and documentation can be found he= re:



--0016e68ea0204c22c50482fb9098--