Skip to content

Commit 01f0c20

Browse files
authored
Merge pull request #21709 from Homebrew/livecheck/json-set-allow_duplicate_key
Json: set allow_duplicate_key in JSON.parse call
2 parents 9c101c4 + e95632a commit 01f0c20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Library/Homebrew/livecheck/strategy

Library/Homebrew/livecheck/strategy/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def self.parse_json(content)
5555
require "json"
5656

5757
begin
58-
JSON.parse(content)
58+
JSON.parse(content, allow_duplicate_key: true)
5959
rescue JSON::ParserError
6060
raise "Content could not be parsed as JSON."
6161
end

0 commit comments

Comments
 (0)