# A2uiJsonToken

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/processor/A2uiJsonReader.kt+class:androidx.a2ui.model.processor.A2uiJsonToken) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public enum A2uiJsonToken extends Enum<@NonNull A2uiJsonToken>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [kotlin.Enum](https://developer.android.com/reference/java/lang/Enum.html)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) [A2uiJsonToken](https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken)\> ||
|   | ↳ | [androidx.a2ui.model.processor.A2uiJsonToken](https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken) |

*** ** * ** ***

Identifies the type of the next JSON token.

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#BEGIN_ARRAY` | Indicates the start of a JSON array. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#BEGIN_OBJECT` | Indicates the start of a JSON object. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#BOOLEAN` | Indicates a JSON boolean value. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#END_ARRAY` | Indicates the end of a JSON array. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#END_DOCUMENT` | Indicates the end of the JSON document. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#END_OBJECT` | Indicates the end of a JSON object. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#NAME` | Indicates a JSON property name. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#NULL` | Indicates a JSON null literal. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#NUMBER` | Indicates a JSON numeric value. |
| `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#STRING` | Indicates a JSON string value. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken>` | `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#getEntries()()` Returns an immutable `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html` list containing the constants of this enum type, in the order they're declared. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken` | `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#valueOf(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Returns the enum constant of this type with the specified name. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull A2uiJsonToken[]` | `https://developer.android.com/reference/androidx/a2ui/model/processor/A2uiJsonToken#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### BEGIN_ARRAY

```
A2uiJsonToken A2uiJsonToken.BEGIN_ARRAY
```

Indicates the start of a JSON array.

### BEGIN_OBJECT

```
A2uiJsonToken A2uiJsonToken.BEGIN_OBJECT
```

Indicates the start of a JSON object.

### BOOLEAN

```
A2uiJsonToken A2uiJsonToken.BOOLEAN
```

Indicates a JSON boolean value.

### END_ARRAY

```
A2uiJsonToken A2uiJsonToken.END_ARRAY
```

Indicates the end of a JSON array.

### END_DOCUMENT

```
A2uiJsonToken A2uiJsonToken.END_DOCUMENT
```

Indicates the end of the JSON document.

### END_OBJECT

```
A2uiJsonToken A2uiJsonToken.END_OBJECT
```

Indicates the end of a JSON object.

### NAME

```
A2uiJsonToken A2uiJsonToken.NAME
```

Indicates a JSON property name.

### NULL

```
A2uiJsonToken A2uiJsonToken.NULL
```

Indicates a JSON null literal.

### NUMBER

```
A2uiJsonToken A2uiJsonToken.NUMBER
```

Indicates a JSON numeric value.

### STRING

```
A2uiJsonToken A2uiJsonToken.STRING
```

Indicates a JSON string value.

## Public methods

### getEntries

```
public final @NonNull EnumEntries<@NonNull A2uiJsonToken> getEntries()
```

Returns an immutable `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html` list containing the constants of this enum type, in the order they're declared.

### valueOf

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public static final @NonNull A2uiJsonToken valueOf(@NonNull String value)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public static final @NonNull A2uiJsonToken[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using `entries` property as a more efficient alternative returning an immutable list of enum entries.