https://github.com/sandinmyjoints/jq-tools
Easy installer for jq binary + tools to prepare files for jq.
https://github.com/sandinmyjoints/jq-tools
Last synced: 2 months ago
JSON representation
Easy installer for jq binary + tools to prepare files for jq.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/jq-tools
- Owner: sandinmyjoints
- Created: 2013-10-25T18:14:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-02T22:50:59.000Z (over 11 years ago)
- Last Synced: 2025-02-08T09:12:53.091Z (4 months ago)
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jq + tools
## Install
Install [jq](https://github.com/stedolan/jq) binary and tools for using it:
`$ bash -c "$(curl -fsSL https://raw.github.com/sandinmyjoints/loggly-jsonify/master/install.sh)"`
## Use
`$ ./jq [options] [file]`
`file` isn't valid json? Use loggly-jsonify.
## Tools
### loggly-jsonify
Convert a log file where each line is a valid JSON object, but the file as a
whole is not, into valid JSON by wrapping it in an array and comma-separating
the objects. Works with, for example, output from
[winston-loggly](https://github.com/indexzero/winston-loggly).`$ ./jsonify.py [outfile]`