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
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs