def consume_if(self, token):
    if self.peek() == token:
      self.consume(token)
      return True
    return False
Format the `value` for serialization (XML, JSON).
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/file_format_parser.py/_Tokenizer.consume_if--crossover with--dataset/ETHPy150Open CybOXProject/python-cybox/cybox/common/properties.py/BaseProperty._serialize_value