BloombergLP::bdljsn::Tokenizer::setAllowStandAloneValues

Set the allowStandAloneValues option to the specified value.

Synopsis

Declared in <bdljsn_tokenizer.h>

Tokenizer&
setAllowStandAloneValues(bool value);

Description

Return a non-const reference to this tokenizer. If the allowStandAloneValues value is true this tokenizer will successfully tokenize JSON values (strings and numbers). If the option's value is false then the tokenizer will only tokenize complete JSON documents (JSON objects and arrays) and return an error for stand alone JSON values. By default, the value of the allowStandAloneValues option is true. The behavior is undefined unless e_RELAXED == conformanceMode().

Return Value

a non-const reference to this tokenizer

Parameters

NameDescription
valuenew value for allowStandAloneValues