diff --git a/rdjson_formatter.rb b/rdjson_formatter.rb index 4688e45..624d02f 100644 --- a/rdjson_formatter.rb +++ b/rdjson_formatter.rb @@ -15,7 +15,7 @@ SEVERITIES = %w[INFO WARNING ERROR].freeze -piped_json = STDIN.each_line.to_a.join +piped_json = STDIN.each_line.to_a.last json_input = JSON.parse(piped_json) results = json_input['results']