https://github.com/jcsalterego/jack
https://github.com/jcsalterego/jack
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcsalterego/jack
- Owner: jcsalterego
- License: other
- Created: 2012-02-18T19:41:54.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-20T17:05:27.000Z (over 14 years ago)
- Last Synced: 2025-01-17T16:37:31.586Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 370 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction
Jack (**J**SON **ack**) is a JSON search utility, aiming for speed.
## Example Usage
Given an example newline-delimited JSON file:
$ cat events.json
{"id":1,"created_at":"Sat Jan 07 03:18:00 +0000 2012"}
{"id":2,"created_at":"Sat Jan 07 03:20:00 +0000 2012"}
{"id":3,"created_at":"Sat Jan 07 03:22:00 +0000 2012"}
Search by key (note the ending colon):
$ jack created_at: events.json
Sat Jan 07 03:18:00 +0000 2012
Sat Jan 07 03:20:00 +0000 2012
Sat Jan 07 03:22:00 +0000 2012
Output raw JSON (quoted strings):
$ jack -j created_at: events.json
"Sat Jan 07 03:18:00 +0000 2012"
"Sat Jan 07 03:20:00 +0000 2012"
"Sat Jan 07 03:22:00 +0000 2012"
## Tests
Unit tests are available using the
[googletest](http://code.google.com/p/googletest/) C++ test framework,
while incorporating the codebase with the `extern "C"` construct. See
`tests/` for more details.
## Compiling
$ cd src && make
## Thanks
* [ack](http://betterthangrep.com/) - for three-quarters of the name
and being awesome
* ["why GNU grep is fast"](http://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html) - for continued inspiration
* [GitHub Watchers Like You](https://github.com/jcsalterego/jack/watchers)
## License
Jack is BSD-licensed. See `LICENSE` for details.