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 } ] ```

Required Ruby Version

>= 0

Authors

yoshihara

Versions

  1. 0.0.5
    1. source

      1. 0.0.5 source March 24, 2014 (9 KB)
  2. 0.0.4
    1. source

      1. 0.0.4 source March 15, 2014 (8.5 KB)
  3. 0.0.3
    1. source

      1. 0.0.3 source March 15, 2014 (8.5 KB)
  4. 0.0.2
    1. source

      1. 0.0.2 source March 09, 2014 (8.5 KB)
  5. 0.0.1
    1. source

      1. 0.0.1 source March 08, 2014 (8.5 KB)

SHA 256 checksum