<commit_before># lazy-pp-json

[![Build Status](https://travis-ci.org/yoshihara/lazy-pp-json.png?branch=master)](https://travis-ci.org/yoshihara/lazy-pp-json)

## Description

Lazy pp json responses.

## Installation

    $ gem install lazy-pp-json

## Usage

```ruby
require "lazy-pp-json"

pp Lazy::PP::JSON.new(json_string)<commit_msg>doc: add examples for differences to README<commit_after># lazy-pp-json

[![Build Status](https://travis-ci.org/yoshihara/lazy-pp-json.png?branch=master)](https://travis-ci.org/yoshihara/lazy-pp-json)

## Description

Lazy pp json responses.

### JSON#pretty_generate

```
[
  [
    0,
    1395671860.99505,
    2.50339508056641e-05
  ],
  {
    "alloc_count": 136,
    "starttime": 1395671856,
    "uptime": 4,
    "version": "4.0.0",
    "n_queries": 0,
    "cache_hit_rate": 0.0,
    "command_version": 1,
    "default_command_version": 1,
    "max_command_version": 2
  }
]
```

### lazy-pp-json

```
[
  [
    0,
    1395671803.76874,
    4.10079956054688e-05
  ],
  {
    "alloc_count"            :175,
    "starttime"              :1395671727,
    "uptime"                 :76,
    "version"                :"4.0.0",
    "n_queries"              :1,
    "cache_hit_rate"         :0.0,
    "command_version"        :1,
    "default_command_version":1,
    "max_command_version"    :2
  }
]
```

## Installation

    $ gem install lazy-pp-json

## Usage

```ruby
require "lazy-pp-json"

pp Lazy::PP::JSON.new(json_string)
{'fraction_non_alphanumeric': 0.1680327868852459, 'fraction_numerical': 0.07718579234972678, 'mean_word_length': 2.644278606965174, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5156573', 'n_tokens_mistral': 660, 'n_tokens_neox': 586, 'n_words': 86}