[#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`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;tokenizer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]&
setAllowConsecutiveSeparators(bool value);
----

== Description

Return a non&hyphen;`const` reference to this tokenizer&period; JSON defines two separator tokens&colon; the colon (`&colon;`) and the comma (`,`)&period; If the `allowConsecutiveSeparators` value is `true` this tokenizer will accept multiple consecutive sequences of a given separator (e&period;g&period;, `&quot;a&quot;&colon;&colon;b, &quot;c&quot;&colon;&colon;&colon;d` and `&quot;a&quot;&colon;b,, &quot;c&quot;&colon;d`, ,, &quot;e&quot;&colon;f&apos;) as if a single separator had appeared (i&period;e&period;, `&quot;a&quot;&colon;b, &quot;c&quot;&colon;d` and `&quot;a&quot;&colon;b, &quot;c&quot;&colon;d`, &quot;e&quot;&colon;f&apos;, respectively)&period; Otherwise the tokenizer returns an error when multiple consecutive colons are found&period; By default, the value of the `allowConsecutiveSeparators` option is `true`&period; The behavior is undefined unless `e&lowbar;RELAXED &equals;&equals; conformanceMode()`&period; Note that consecutive sequences using both tokens (e&period;g&period;, `&colon;&colon;,,&colon;&colon;`) is always an error&period;

== Return Value

a non&hyphen;`const` reference to this tokenizer

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| new value for `allowConsecutiveSeparators`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
