From: Julien Verlaguet <julien.verlaguet@gmail.com>
To: OCaml List <caml-list@yquem.inria.fr>
Subject: [ANN] jsonpat
Date: Mon, 29 Mar 2010 19:41:16 -0700 [thread overview]
Message-ID: <a01563691003291941u54a54e8dmac6351111122a2b3@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1142 bytes --]
reply other threads:[~2010-03-30 2:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a01563691003291941u54a54e8dmac6351111122a2b3@mail.gmail.com \
--to=julien.verlaguet@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox