enum te_compound_kind

Overview

The kind of a compound string. More…

#include <te_compound.h>

enum te_compound_kind {
    TE_COMPOUND_NULL,
    TE_COMPOUND_PLAIN,
    TE_COMPOUND_ARRAY,
    TE_COMPOUND_OBJECT,
};

Detailed Documentation

The kind of a compound string.

This is mostly important for JSON serialization.

Enum Values

TE_COMPOUND_NULL

Empty compound string.

TE_COMPOUND_PLAIN

Simple non-empty string without internal structure.

TE_COMPOUND_ARRAY

A compound containing only unnamed items.

TE_COMPOUND_OBJECT

A compound containing at least one named item.

It may also have unnamed items as well, making it a hybrid of an array and a dictionary, but such compounds will still always be serialized as JSON objects.