<commit_before># jid
Json Incremental Digger

It's very simple tool.  
You can drill down interactively by using filtering queries like [jq](https://stedolan.github.io/jq/).

## Demo

![demo-jid-main](https://github.com/simeji/jid/wiki/images/demo-jid-main-640.gif)

## Installation

* [With homebrew taps (for Mac)](#with-homebrew-taps-for-mac)  
* [Simply use "jid" command](#simply-use-jid-command)  
* [Build "jid" command by yourself](#build-jid-command-by-yourself)  

### With homebrew taps (for Mac)

```
brew tap simeji/jid
brew install jid
```

### Simply use "jid" command

If you simply want to use `jid` command, please download binary from below.

https://github.com/simeji/jid/releases

### Build "jid" command by yourself

jid require some packages.
Please `go get` below packages.

[bitly/go-simplejson](https://github.com/bitly/go-simplejson)  
[nsf/termbox-go](https://github.com/nsf/termbox-go)  
[pkg/erros](https://github.com/pkg/errors)  
[stretchr/testify/assert](https://github.com/stretchr/testify/assert)  

## Usage

### Quick start

* [simple json example](#simple-json-example)  
* [simple json example2](#simple-json-example2)  
* [with curl](#with-curl)  

#### simple json example

Please execute the below command.

```
echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jid<commit_msg>Updated the go get block<commit_after># jid
Json Incremental Digger

It's very simple tool.  
You can drill down interactively by using filtering queries like [jq](https://stedolan.github.io/jq/).

## Demo

![demo-jid-main](https://github.com/simeji/jid/wiki/images/demo-jid-main-640.gif)

## Installation

* [With homebrew taps (for Mac)](#with-homebrew-taps-for-mac)  
* [Simply use "jid" command](#simply-use-jid-command)  
* [Build "jid" command by yourself](#build-jid-command-by-yourself)  

### With homebrew taps (for Mac)

```
brew tap simeji/jid
brew install jid
```

### Simply use "jid" command

If you simply want to use `jid` command, please download binary from below.

https://github.com/simeji/jid/releases

## Build

Building jid requires some packages.

```
go get github.com/bitly/go-simplejson
go get github.com/nsf/termbox-go
go get github.com/pkg/errors
go get github.com/stretchr/testify/assert
```

## Usage

### Quick start

* [simple json example](#simple-json-example)  
* [simple json example2](#simple-json-example2)  
* [with curl](#with-curl)  

#### simple json example

Please execute the below command.

```
echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jid
{'fraction_non_alphanumeric': 0.16896415911776289, 'fraction_numerical': 0.011815675462780622, 'mean_word_length': 4.4389721627409, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3532747', 'n_tokens_mistral': 966, 'n_tokens_neox': 893, 'n_words': 215}