Skip to content

hymkor/jrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JREP - Format-Preserving JSON Extractor (JSON生テキスト抽出ツール)

> jrep .[1628].entities.user_mentions ../jegan/__twitter/tweet.js

    "user_mentions" : [ {
      "name" : "職業亡者",
      "screen_name" : "hymkor",
      "indices" : [ "3.0", "10.0" ],
      "id_str" : "94929449",
      "id" : "9.4929449E7"
    } ],

> jrep .[1628].entities.user_mentions[0] ../jegan/__twitter/tweet.js
 {
      "name" : "職業亡者",
      "screen_name" : "hymkor",
      "indices" : [ "3.0", "10.0" ],
      "id_str" : "94929449",
      "id" : "9.4929449E7"
    }

> jrep .[1628].entities.user_mentions[0].indices ../jegan/__twitter/tweet.j

      "indices" : [ "3.0", "10.0" ],

> jrep .[1628].entities.user_mentions[0].indices[0] ../jegan/__twitter/tweet.js
 "3.0",

Usage of jrep:

  • -no-comma
    Suppress the trailing comma, if present.
  • -no-newline
    Do not append a newline after each input.
  • -value-only
    Output only the value, omitting the key and surrounding syntax.

Related

  • jegan — an interactive JSON editor built on the same format-preserving parser

About

JREP - Format-Preserving JSON Extractor (JSON生テキスト抽出ツール)

Resources

License

Stars

Watchers

Forks

Contributors