def endEvent(self):
        if self.type == ARRAY:
            return JSONEvent(self, END_ARRAY, arrayIndex=self.arrayIndex,
                             arrayLength=self.arrayLength)
        elif self.type == OBJECT:
            return JSONEvent(self, END_OBJECT, arrayIndex=self.arrayIndex)
        elif self.type == FIELD and self.valueType not in (OBJECT, ARRAY):
            return JSONEvent(self, FIELD_VALUE, self.value, self.valueType)
dataset/ETHPy150Open Teradata/PyTd/teradata/pulljson.py/JSONNode.endEvent/original