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