Fwupd.JsonNode¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
Details¶
- class Fwupd.JsonNode¶
A JSON node.
Nodes are lazy-parsed, and can either be an “object”, an “array”, a “string” or “raw” – the latter which can be parsed as a float, integer, or boolean.
See also: ‘struct@FwupdJsonArray [struct@FwupdJsonObject]’
- classmethod kind_to_string(val)[source]¶
- Parameters:
val (
Fwupd.JsonNodeKind) – value, e.g.Fwupd.JsonNodeKind.RAW- Returns:
identifier string
- Return type:
Converts an enumerated value to a string.
New in version 2.1.1.
- get_kind()[source]¶
- Returns:
- Return type:
Gets the kind of the JSON json_node.
New in version 2.1.1.
- to_string(flags)[source]¶
- Parameters:
flags (
Fwupd.JsonExportFlags) – someFwupd.JsonExportFlagse.g.Fwupd.JsonExportFlags.INDENT- Returns:
- Return type:
Converts the JSON json_node to a string representation.
New in version 2.1.1.
- unref()[source]¶
- Returns:
a
Fwupd.JsonArray, orNone- Return type:
Destroys a JSON json_node.
New in version 2.1.1.