Skip to content

JsonValue

Base classes

Name Children Inherits
QJsonValue
PySide6.QtCore
QJsonValue(self, a: PySide6.QtCore.QJsonArray, /) -> None

⋔ Inheritance diagram

graph TD
  186394131["core.JsonValue"]
  3939488204["QtCore.QJsonValue"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3939488204 --> 186394131
  37984305 --> 3939488204
  2751680898 --> 37984305

🛈 DocStrings

Bases: QJsonValue

Encapsulates a value in JSON.

Source code in prettyqt/core/jsonvalue.py
class JsonValue(QtCore.QJsonValue):
    """Encapsulates a value in JSON."""

    def __str__(self):
        return str(self.toVariant())

    def __repr__(self):
        return get_repr(self, self.toVariant())

:fa-brands-github: Show source on GitHub