---
title: "System::Text::Json::Utf8JsonWriter::WriteBoolean method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/utf8jsonwriter/writeboolean/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use WriteBoolean method of System::Text::Json::Utf8JsonWriter class in C++."
---

## Utf8JsonWriter::WriteBoolean(JsonEncodedText, bool) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBoolean(JsonEncodedText propertyName, bool value)
```

## See Also

* Class [JsonEncodedText](../../jsonencodedtext/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBoolean(ReadOnlySpan\<char16_t\>, bool) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBoolean(ReadOnlySpan<char16_t> propertyName, bool value)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBoolean(ReadOnlySpan\<uint8_t\>, bool) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBoolean(ReadOnlySpan<uint8_t> utf8PropertyName, bool value)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBoolean(String, bool) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBoolean(String propertyName, bool value)
```

## See Also

* Class [String](../../../system/string/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
