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

Create an object that guards the invariant (valid UTF&hyphen;8) of the JSON string at the specified `string`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
Json&lowbar;StringInvariantGuard(xref:bsl/string.adoc[bsl::string]* string);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string whose contents are guarded
|===


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