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

## JsonElement::ValueEquals(ReadOnlySpan\<char16_t\>) method




```cpp
bool System::Text::Json::JsonElement::ValueEquals(ReadOnlySpan<char16_t> text)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## JsonElement::ValueEquals(ReadOnlySpan\<uint8_t\>) method




```cpp
bool System::Text::Json::JsonElement::ValueEquals(ReadOnlySpan<uint8_t> utf8Text)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## JsonElement::ValueEquals(String) method




```cpp
bool System::Text::Json::JsonElement::ValueEquals(String text)
```

## See Also

* Class [String](../../../system/string/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
