[#BloombergLP-bdljsn-Tokenizer-setAllowConsecutiveSeparators] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]::setAllowConsecutiveSeparators :relfileprefix: ../../../ :mrdocs: Set the `allowConsecutiveSeparators` option to the specified `value` and return a non‐`const` reference to this tokenizer. JSON defines two separator tokens: the colon (`:`) and the comma (`,`). If the `allowConsecutiveSeparators` value is `true` this tokenizer will accept multiple consecutive sequences of a given separator (e.g., `"a"::b, "c":::d` and `"a":b,, "c":d`, ,, "e":f') as if a single separator had appeared (i.e., `"a":b, "c":d` and `"a":b, "c":d`, "e":f', respectively). Otherwise the tokenizer returns an error when multiple consecutive colons are found. By default, the value of the `allowConsecutiveSeparators` option is `true`. The behavior is undefined unless `e_RELAXED == conformanceMode()`. Note that consecutive sequences using both tokens (e.g., `::,,::`) is always an error. == Synopsis Declared in `<bdljsn_tokenizer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]& setAllowConsecutiveSeparators(bool value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#