Class: JsonPath
Overview
Monkey patch JsonPath to enable create_additions and allow_nan to support binary strings, and NaN, Infinity, -Infinity
Class Method Summary collapse
Class Method Details
.process_object(obj_or_str, opts = {}) ⇒ Object
26 27 28 |
# File 'lib/openc3/accessors/json_accessor.rb', line 26 def self.process_object(obj_or_str, opts = {}) obj_or_str.is_a?(String) ? MultiJson.decode(obj_or_str, max_nesting: opts[:max_nesting], create_additions: true, allow_nan: true) : obj_or_str end |