def _parse_collection(self, content):
        collection = []
        while len(content) != 0:
            c = content[0]
            if c == ',':
                content = content[1:]
            elif c == ']':
                content = content[1:]
                break

            chunk = self._parse_value(content)
            collection.append(chunk[0])
            content = chunk[1]

        return [collection, content]
Consume an array of values.
dataset/ETHPy150Open mogui/pyorient/pyorient/serializations.py/OrientSerializationCSV._parse_collection