All Projects → AndrewGuenther → Jsonf

AndrewGuenther / Jsonf

Licence: mit
A Unix-y utility for formatting JSON in a more stream-friendly way

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Jsonf

Jtc
JSON processing utility
Stars: ✭ 425 (+553.85%)
Mutual labels:  command-line, json, unix
Xidel
Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
Stars: ✭ 335 (+415.38%)
Mutual labels:  command-line, json
Bfs
A breadth-first version of the UNIX find command
Stars: ✭ 336 (+416.92%)
Mutual labels:  command-line, unix
Jl
Functional sed for JSON
Stars: ✭ 449 (+590.77%)
Mutual labels:  command-line, json
Cli
A simple, fast, and fun package for building command line apps in Go
Stars: ✭ 16,995 (+26046.15%)
Mutual labels:  command-line, json
Urs
Universal Reddit Scraper - A comprehensive Reddit scraping command-line tool written in Python.
Stars: ✭ 275 (+323.08%)
Mutual labels:  command-line, json
Bash Boilerplate
A collection of Bash scripts for creating safe and useful command line programs.
Stars: ✭ 447 (+587.69%)
Mutual labels:  command-line, unix
Snapstub
Copy API endpoints to your fs and run a local server using them
Stars: ✭ 193 (+196.92%)
Mutual labels:  command-line, unix
Conf
Simple config handling for your app or module
Stars: ✭ 707 (+987.69%)
Mutual labels:  command-line, json
Ipt
Interactive Pipe To: The Node.js cli interactive workflow
Stars: ✭ 783 (+1104.62%)
Mutual labels:  command-line, unix
Jc
CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
Stars: ✭ 967 (+1387.69%)
Mutual labels:  command-line, json
Miller
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
Stars: ✭ 4,633 (+7027.69%)
Mutual labels:  command-line, json
Survey
A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
Stars: ✭ 2,843 (+4273.85%)
Mutual labels:  command-line, unix
Commandtrayhost
A command line program monitor systray for Windows
Stars: ✭ 303 (+366.15%)
Mutual labels:  command-line, json
Tq
Perform a lookup by CSS selector on an HTML input
Stars: ✭ 193 (+196.92%)
Mutual labels:  command-line, json
Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (+1470.77%)
Mutual labels:  command-line, json
Fblog
Small command-line JSON Log viewer
Stars: ✭ 137 (+110.77%)
Mutual labels:  command-line, json
Json 2 Kotlin
Convert JSON to Kotlin Data Classes
Stars: ✭ 148 (+127.69%)
Mutual labels:  command-line, json
Jsonui
jsonui is an interactive JSON explorer on your command line
Stars: ✭ 583 (+796.92%)
Mutual labels:  command-line, json
Ed
A modern UNIX ed (line editor) clone written in Go
Stars: ✭ 44 (-32.31%)
Mutual labels:  command-line, unix

jsonf

A Unix-y utility for formatting JSON in a more stream-friendly way.

Usage

jsonf reads from stdin and writes to stdout by default.

$ jsonf --help
Usage of jsonf:
  -a="[]": The runes used to wrap output array indexes.
  -i="": The input file. Defaults to stdin.
  -k="{}": The runes used to wrap output keys.
  -keys=false: If true, keys are printed on their own line.
  -o="": The output file. Defaults to stdout.
  -s="\"\"": The runes used to wrap output strings.
  -sep=">": String used to seperate keys.
$ jsonf --keys
{"colors": ["red", "blue", "green"], "numbers": [1, 2, 3], "active": true}
>{active}
>{active}>true
>{colors}
>{colors}>[]
>{colors}>[0]>"red"
>{colors}>[1]>"blue"
>{colors}>[2]>"green"
>{numbers}
>{numbers}>[]
>{numbers}>[0]>1
>{numbers}>[1]>2
>{numbers}>[2]>3

Examples

Get information about the most recent commit on this repository

$ curl -s 'https://api.github.com/repos/andrewguenther/jsonf/commits' |
  jsonf |
  grep -a "\[0\].*{commit}>{committer}>.*>" |
  cut -d ">" -f 5,6
{name}>"Andrew Guenther"
{email}>"[email protected]"
{date}>"2015-05-02T09:24:43Z"

Get all the front page links on Reddit

$ curl -s 'https://www.reddit.com/.json' |
  jsonf |
  grep '>{data}>{children}>\[.\+\]>{data}>{url}>' |
  cut -d '>' -f 7
"https://i.imgur.com/qH91IEl.gifv"
"http://imgur.com/MUXn9fD"
"http://www.mnn.com//earth-matters/wilderness-resources/stories/more-trees-than-there-were-100-years-ago-its-true"
"http://imgur.com/mjbuXpA"
"http://i.imgur.com/XJ2SG5J.jpg"
"http://imgur.com/tvUSaLZ"
"http://www.reddit.com/r/science/comments/34kxuh/do_you_have_a_college_degree_or_higher_in_science/"
"http://imgur.com/qOPPuzb"
"http://www.reuters.com/article/2015/04/30/us-usa-police-apps-idUSKBN0NL2SK20150430"
"https://m.youtube.com/watch?v=pNHpDG9dZq0"
"http://www.thefix.com/content/ecuador-considers-decriminalizing-all-illegal-drug-use"
"http://i.imgur.com/9x6acUY.jpg"
"http://www.hollywoodreporter.com/news/adam-sandlers-ridiculous-six-makeup-792582"
"http://www.reddit.com/r/AskReddit/comments/34kkcs/pregnant_people_of_reddit_whats_the_rudestmost/"
"http://imgur.com/5Q1RzVV"
"http://www.reddit.com/r/Jokes/comments/34kihw/how_many_reddit_mods_does_it_take_to_change_a/"
"http://imgur.com/a/8aFdi"
"http://www.cbsnews.com/news/woman-texted-driving-drunk-woo-just-before-fatal-crash/"
"http://imgur.com/a/Rzrk9"
"http://www.reddit.com/r/Showerthoughts/comments/34j0r7/that_google_chrome_what_tab_is_being_noisy/"
"http://i.imgur.com/vuBumaG.jpg"
"http://www.reddit.com/r/WritingPrompts/comments/34j4ph/wp_elon_musk_is_actually_a_stranded_alien_who/"
"http://www.reddit.com/r/IAmA/comments/34k027/i_am_noel_gallagher_amaa/"
"http://imgur.com/O4hkbVt"
"http://imgur.com/a/lDn0S"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].