This function is only available after endInput()
(or initCompleteInput()
) has been called. If the next token type is .object_begin
or .array_begin
, this function calls next()
repeatedly until the corresponding .object_end
or .array_end
is found. If the next token type is .number
or .string
, this function calls next()
repeatedly until the (non .partial_*
) .number
or .string
token is found. If the next token type is .true
, .false
, or .null
, this function calls next()
once. The next token type must not be .object_end
, .array_end
, or .end_of_document
; see peekNextTokenType()
.