Enums

Details

class Json.NodeType(value)

Bases: GObject.GEnum

Indicates the content of a node.

OBJECT = 0

The node contains a JSON object

ARRAY = 1

The node contains a JSON array

VALUE = 2

The node contains a fundamental type

NULL = 3

Special type, for nodes containing null

class Json.ParserError(value)

Bases: GObject.GEnum

Error codes for JSON_PARSER_ERROR.

This enumeration can be extended at later date

classmethod quark()
Return type:

int

PARSE = 0

parse error

TRAILING_COMMA = 1

unexpected trailing comma

MISSING_COMMA = 2

expected comma

MISSING_COLON = 3

expected colon

INVALID_BAREWORD = 4

invalid bareword

EMPTY_MEMBER_NAME = 5

empty member name

New in version 0.16.

INVALID_DATA = 6

invalid data

New in version 0.18.

UNKNOWN = 7

unknown error

class Json.PathError(value)

Bases: GObject.GEnum

Error codes for JSON_PATH_ERROR.

This enumeration can be extended at later date

New in version 0.14.

classmethod quark()
Return type:

int

QUERY = 0

Invalid query

class Json.ReaderError(value)

Bases: GObject.GEnum

Error codes for JSON_READER_ERROR.

This enumeration can be extended at later date

New in version 0.12.

classmethod quark()
Return type:

int

NO_ARRAY = 0

No array found at the current position

INVALID_INDEX = 1

Index out of bounds

NO_OBJECT = 2

No object found at the current position

INVALID_MEMBER = 3

Member not found

INVALID_NODE = 4

No valid node found at the current position

NO_VALUE = 5

The node at the current position does not hold a value

INVALID_TYPE = 6

The node at the current position does not hold a value of the desired type