JsonToken#
Fully qualified name: omni::structuredlog::JsonToken
Defined in omni/structuredlog/JsonSerializer.h
-
enum class omni::structuredlog::JsonToken#
Which type of token is being processed during serialization.
Most consumers can use the raw text, but some may need to know the context of the text they have received.
Values:
-
enumerator eKeyStart#
"that starts a key entry
-
enumerator eKey#
e.g. “key” in
"key": "value". Keys are always sent in one consume() call.
-
enumerator eKeyEnd#
"that ends a key entry
-
enumerator eValueStart#
"that starts a value entry. These are only issued when a value needs to be quoted and may require multiple consume calls.
-
enumerator eValue#
e.g. “value in `”key”: “value”`. Values may be sent over multiple consume() calls if eValueStart was sent in the prior consume() call.
-
enumerator eValueEnd#
"that starts a value entry. This is only sent if eValueStart was sent before the stream of eValue calls.
-
enumerator eSeparator#
,
-
enumerator eOpenArray#
[
-
enumerator eCloseArray#
]
-
enumerator eOpenObject#
{
-
enumerator eCloseObject#
}
-
enumerator eWhiteSpace#
Whitespace for pretty printing.
-
enumerator eKeyStart#