Skip to content

Simple utility to extract parts of JSON from STDIN.

Notifications You must be signed in to change notification settings

miles-d/json_extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON_EXTRACT

A utility written to extract parts of JSON from STDIN.
Requires Python.
Put it somewhere in your $PATH.

Usage:

Given sample.json with following content:

{
  "first_level_key": {
    "second_level_key": [
      "foo",
      "bar"
    ]
  }
}

The following wil get "bar":

cat sample.json | json_extract first_level_key.second_level_key.1

About

Simple utility to extract parts of JSON from STDIN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published