<div class="meta" robots="noindex">

</div>

Method

# JSONItem.Name

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `JSONItem.ValueAt<jsonitem.valueat>` as a replacement.

</div>

## Description

Returns the <span class="title-ref">Name</span> of a named child by index. Array items will return an empty string. *Index* is zero-based.

## Sample code

``` xojo
Var person As New JSONItem

' This object is manipulated like a dictionary
person.Value("Name") = "John Doe"
person.Value("Age") = 32
person.Value("Married") = True
person.Value("Spouse") = "Jane Doe"

Var s2 As String
s2 = person.Name(1) ' returns "Age"
```

## Compatibility

All project types on all supported operating systems.
