lib/spandx/php/packagist_gateway.rb in spandx-0.13.4 vs lib/spandx/php/packagist_gateway.rb in spandx-0.13.5

- old
+ new

@@ -15,10 +15,10 @@ def licenses_for(dependency) response = http.get("https://repo.packagist.org/p/#{dependency.name}.json") return [] unless http.ok?(response) - json = JSON.parse(response.body) + json = Oj.load(response.body) json['packages'][dependency.name][dependency.version]['license'] end end end end