Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created July 28, 2014 15:05
Show Gist options
  • Save ploubser/0de908f2d5677482f1b0 to your computer and use it in GitHub Desktop.
Save ploubser/0de908f2d5677482f1b0 to your computer and use it in GitHub Desktop.
psy@Moya ~/work/jjgrep $ cat the.json |jgrep
[
{
"foo": {
"bar": "foo-bar-1"
},
"bar": 1,
"baz": [
1,
2,
3,
4
]
}
]
psy@Moya ~/work/jjgrep $ cat the.json |lein run "[\"=\" \"bar\" \"1\"]"
false
psy@Moya ~/work/jjgrep $ cat the.json |lein run "[\"=\" \"bar\" 1]"
true
psy@Moya ~/work/jjgrep $ cat the.json |lein run "[\"=\" \"baz\" [1 2 3 4]]"
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment