[#BloombergLP-bdljsn-Json_StringInvariantGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::Json&lowbar;StringInvariantGuard
:relfileprefix: ../../
:mrdocs:

This is a component&hyphen;private guard class&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Json&lowbar;StringInvariantGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/Json_StringInvariantGuard/2constructor.adoc[`Json&lowbar;StringInvariantGuard`]         [.small]#[constructor]#
| Create an object that guards the invariant (valid UTF&hyphen;8) of the JSON string at the specified `string`&period;
| xref:BloombergLP/bdljsn/Json_StringInvariantGuard/2destructor.adoc[`&#126;Json&lowbar;StringInvariantGuard`] [.small]#[destructor]#
| Validate the JSON string specified on construction using `BSLS&lowbar;ASSERT` and destroy this guard object&period;
|===



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