lib/contrast/agent/assess/policy/policy.rb in contrast-agent-7.0.0 vs lib/contrast/agent/assess/policy/policy.rb in contrast-agent-7.1.0

- old
+ new

@@ -56,10 +56,10 @@ # If the configuration file explicitly disables a feature, we know # that we will not ever be able to enable it, so in that case, we # can skip policy loading. return if disabled_globally? - policy_data = JSON.parse(string) + policy_data = Contrast::Utils::Json.parse(string) policy_data[SOURCES_KEY].each do |source_hash| source = Contrast::Agent::Assess::Policy::SourceNode.new(source_hash) add_node(source, :source) end