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

## JsonElement::TryGetDecimal method




```cpp
bool System::Text::Json::JsonElement::TryGetDecimal(Decimal &value)
```

## See Also

* Class [Decimal](../../../system/decimal/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
