---
title: "System::Text::Json::Nodes::JsonObject::idx_get method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json.nodes/jsonobject/idx_get/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Text::Json::Nodes::JsonObject::idx_get method. Getter function in C++."
---

## JsonObject::idx_get(const String\&) const method


Getter function.

```cpp
System::SharedPtr<JsonNode> System::Text::Json::Nodes::JsonObject::idx_get(const String &propertyName) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const String\& | Key to look for. |

### ReturnValue

Value at specified key.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [String](../../../system/string/)
* Class [JsonObject](../)
* Namespace [System::Text::Json::Nodes](../../)
* Library [Aspose.PDF for C++](../../../)
## JsonObject::idx_get(int32_t) const method




```cpp
Collections::Generic::KeyValuePair<String, System::SharedPtr<JsonNode>> System::Text::Json::Nodes::JsonObject::idx_get(int32_t index) const override
```

## See Also

* Class [KeyValuePair](../../../system.collections.generic/keyvaluepair/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [JsonObject](../)
* Namespace [System::Text::Json::Nodes](../../)
* Library [Aspose.PDF for C++](../../../)
