Add element to sequence, member to mapping.

    :param doc: the document base
    :param pointer: the path to add in it
    :param value: the new value
    :return: the new object

def add(doc, pointer, value):
    """Add element to sequence, member to mapping.

    :param doc: the document base
    :param pointer: the path to add in it
    :param value: the new value
    :return: the new object
    """
    return Target(doc).add(pointer, value).document