'Serializes this MapperSpec into a json-izable object.'

def to_json(self):

    return {'mapper_handler_spec': self.handler_spec, 'mapper_input_reader': self.input_reader_spec, 'mapper_params': self.params, 'mapper_shard_count': self.shard_count}
