code: def WriteEventBody(self, event):
      
      inode = getattr(event, 'inode', None)
      if inode is None:
        event.inode = 0
  
      json_dict = self._JSON_SERIALIZER.WriteSerializedDict(event)
      json_string = json.dumps(json_dict, sort_keys=True)
  
      if self._event_counter != 0:
        self._output_writer.Write(', ')
  
      line = '"event_{0:d}": {1:s}\n'.format(self._event_counter, json_string)
      self._output_writer.Write(line)
  
      self._event_counter += 1
docs: Writes the body of an event object to the output.
  
      Args:
        event (EventObject): event.