#!/usr/bin/ruby

require 'json'

begin
  JSON.parse(ARGF.read)
  exit 0
rescue JSON::ParserError => e
  exit 1
end