src/metaloaders/json.py
def load(stream: str) -> Node:
    """Loads a string representation of a document.

    Raises `metaloaders.exceptions.MetaloaderError` if any parsing error occur.
    """
    parser = lark.Lark(
        grammar=GRAMMAR,
        parser='lalr',
        propagate_positions=True,
    )

    try:
        obj = parser.parse(stream)
    except lark.exceptions.LarkError as exc:
        raise MetaloaderError(f'Unable to parse stream: {exc}')
    else:
        data: Node = _simplify(obj)
        return data
Loads a string representation of a document.

    Raises `metaloaders.exceptions.MetaloaderError` if any parsing error occur.
    
Loads a string representation of a document.
Raises `metaloaders.exceptions.MetaloaderError` if any parsing error occur.
Loads a string representation of a document . Raises ` metaloaders . exceptions . MetaloaderError ` if any parsing error occur .
def load(stream: str) -> Node:
    parser = lark.Lark(
        grammar=GRAMMAR,
        parser='lalr',
        propagate_positions=True,
    )
    try:
        obj = parser.parse(stream)
    except lark.exceptions.LarkError as exc:
        raise MetaloaderError(f'Unable to parse stream: {exc}')
    else:
        data: Node = _simplify(obj)
        return data
def load ( stream : str ) -> Node : parser = lark . Lark ( grammar = GRAMMAR , parser = 'lalr' , propagate_positions = True , ) try : obj = parser . parse ( stream ) except lark . exceptions . LarkError as exc : raise MetaloaderError ( f'Unable to parse stream: {exc}' ) else : data : Node = _simplify ( obj ) return data
Loads a string representation of a document.
Loads a string representation of a document .
"""Loads a string representation of a document.

    Raises `metaloaders.exceptions.MetaloaderError` if any parsing error occur.
    """
stream
str