Method: TridentAssistant::Utils.parse_json
- Defined in:
- lib/trident_assistant/utils.rb
.parse_json(input) ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/trident_assistant/utils.rb', line 81 def parse_json(input) input = if File.file? input File.read input else input end JSON.parse(input).with_indifferent_access end |