def _flatten_sequence_obj(self, obj, data):
    'Return a json-friendly dict for a sequence subclass.'
    if hasattr(obj, '__dict__'):
        self._flatten_dict_obj(obj.__dict__, data)
    value = [self._flatten(v) for v in obj]
    if self.unpicklable:
        data[tags.SEQ] = value
    else:
        return value
    return data
Return a json-friendly dict for a sequence subclass.
def _flatten_sequence_obj(self, obj, data):
    
    if hasattr(obj, '__dict__'):
        self._flatten_dict_obj(obj.__dict__, data)
    value = [self._flatten(v) for v in obj]
    if self.unpicklable:
        data[tags.SEQ] = value
    else:
        return value
    return data