Enumeration

judo_result

Function status code.

Since v1.0
enum judo_result {
    ...
}

Constants πŸ”—

JUDO_SUCCESS

Operation successful.

JUDO_BAD_SYNTAX

Source text malformed.

JUDO_NO_BUFFER_SPACE

Insufficient buffer space.

JUDO_ILLEGAL_BYTE_SEQUENCE

Malformed Unicode encoded character.

JUDO_OUT_OF_RANGE

The value cannot be represented by the storage type.

JUDO_INVALID_OPERATION

Illegal API usage.

JUDO_MAXIMUM_NESTING

The JSON structure exceeds the maximum nesting depth.

JUDO_OUT_OF_MEMORY

Dynamic memory allocation failed.

JUDO_MALFUNCTION

Defect in the implementation.

Discussion πŸ”—

Most functions in the Judo API return one of these enumeration values. Those that don’t are higher-level, inspection-oriented APIs that operate on already derived data.