RubyGems Navigation menu

lazy-pp-json 0.0.5

Lazy pp json responses. ### JSON#pretty_generate ```ruby example_json = "[[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}]" puts JSON.pretty_generate(JSON.parse(example_json)) #=> # [ # [ # 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 ```ruby example_json = "[[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}]" pp Lazy::PP::JSON.new(example_json) #=> [ [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 } ] ```

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.0.5 March 24, 2014 (9KB)
  2. 0.0.4 March 15, 2014 (8.5KB)
  3. 0.0.3 March 15, 2014 (8.5KB)
  4. 0.0.2 March 09, 2014 (8.5KB)
  5. 0.0.1 March 08, 2014 (8.5KB)

Runtime依存関係 (1):

json >= 0

Development依存関係 (4):

bundler ~> 1.3
rake >= 0
test-unit >= 0

所有者:

作者:

  • yoshihara

SHA 256チェックサム:

=

累計ダウンロード数 14,149

このバージョンのみ 3,771

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: