on_characters Event

Fired for plain text segments of the input stream.

Syntax

class JSONCharactersEventParams(object):
  @property
  def text() -> str: ...

# In class JSON:
@property
def on_characters() -> Callable[[JSONCharactersEventParams], None]: ...
@on_characters.setter
def on_characters(event_hook: Callable[[JSONCharactersEventParams], None]) -> None: ...

Remarks

The on_characters event provides the plain text content of the JSON document (i.e. the text inside the elements). The text is provided through the Text parameter.

The text includes white space as well as end of line characters, except for ignorable whitespace which is fired through the on_ignorable_whitespace event.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]