Module: MultiJson
- Defined in:
- lib/monkeys/multi_json_empty_fix.rb
Overview
This allows us to accept “JSON” that is malformed and is empty string (“”) that subscription-manager-1.1.23-1.el6.x86_64 will from time to time, send to katello
Class Method Summary collapse
Class Method Details
.load(string, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/monkeys/multi_json_empty_fix.rb', line 8 def load(string, = {}) string = string.read if string.respond_to?(:read) string = "{}" if string == '""' old_aliased_load(string, ) end |
.old_aliased_load ⇒ Object
6 |
# File 'lib/monkeys/multi_json_empty_fix.rb', line 6 alias_method :old_aliased_load, :load |