jsonTok

Search for the next token in the iopipe c, ignoring white space. This does not validate data, it simply searches for the beginning of a valid JSON token. Since each token is definitive based on the first character, only the first character is looked at.

jsonTok
(
Chain
)
(
ref Chain c
,
ref size_t pos
)
if (
isIopipe!Chain &&
isSomeChar!(ElementEncodingType!(WindowType!Chain))
)

Parameters

c Chain

The iopipe in which to search for tokens. extend may be used on the iopipe to find the next token.

pos size_t

Current position in the window. Taken via ref so it can be updated to point at the new token.

Return Value

Type: JSONToken

The expected type of token at the new position.

Meta