caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [ANN] jsonpat
@ 2010-03-30  2:41 Julien Verlaguet
  0 siblings, 0 replies; only message in thread
From: Julien Verlaguet @ 2010-03-30  2:41 UTC (permalink / raw)
  To: OCaml List

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-30  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30  2:41 [ANN] jsonpat Julien Verlaguet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).