0.0
No release in over 3 years
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 } ] ```
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0