Ok jq is great but sometimes i just need to select/filter a field or two
Example usage:
$ curl https://now.httpbin.org | json now rfc3339
"2018-04-26T05:10:00.78Z"
$ echo '[{"id": 1, "title":"Hello"}, {"id": 2, "title":"Goodbye"}]' | json title=Hello id
[
1
]
$ echo '[{"id": 1, "title":"Hello"}, {"id": 2, "title":"Goodbye"}]' | json title=Hello id
[
1
]
$ echo '[{"id": 1, "title":"123456789"}, {"id": 2, "title":"Goodbye"}, {"id": 3, "title": "987765"}]' | json 'title~\d+' id
[
1,
3
]