Class: ChartMogul::Utils::JSONParser
- Inherits:
-
Object
- Object
- ChartMogul::Utils::JSONParser
- Defined in:
- lib/chartmogul/utils/json_parser.rb
Class Method Summary collapse
Class Method Details
.parse(json_string) ⇒ Object
4 5 6 7 |
# File 'lib/chartmogul/utils/json_parser.rb', line 4 def self.parse(json_string) hash = JSON.parse(json_string, symbolize_names: true) HashSnakeCaser.new(hash).to_snake_keys end |