code: def read_json(self):
          
          line = self.stdin.readline()
          if line == '':
              raise EOFError()
          return json.loads(line)
docs: Read a single line and decode it as JSON.
  
          Can raise an EOFError() when the input source was closed.