# 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)

*** ** * ** ***


```
enum A2uiJsonToken : Enum<A2uiJsonToken>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)\<[A2uiJsonToken](https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken)\> ||
|   | ↳ | [androidx.a2ui.model.processor.A2uiJsonToken](https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken) |

*** ** * ** ***

Identifies the type of the next JSON token.

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken#valueOf(kotlin.String)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Returns the enum constant of this type with the specified name. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/processor/A2uiJsonToken#entries()` 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. |

## Enum Values

### BEGIN_ARRAY

```
val A2uiJsonToken.BEGIN_ARRAY: A2uiJsonToken
```

Indicates the start of a JSON array.

### BEGIN_OBJECT

```
val A2uiJsonToken.BEGIN_OBJECT: A2uiJsonToken
```

Indicates the start of a JSON object.

### BOOLEAN

```
val A2uiJsonToken.BOOLEAN: A2uiJsonToken
```

Indicates a JSON boolean value.

### END_ARRAY

```
val A2uiJsonToken.END_ARRAY: A2uiJsonToken
```

Indicates the end of a JSON array.

### END_DOCUMENT

```
val A2uiJsonToken.END_DOCUMENT: A2uiJsonToken
```

Indicates the end of the JSON document.

### END_OBJECT

```
val A2uiJsonToken.END_OBJECT: A2uiJsonToken
```

Indicates the end of a JSON object.

### NAME

```
val A2uiJsonToken.NAME: A2uiJsonToken
```

Indicates a JSON property name.

### NULL

```
val A2uiJsonToken.NULL: A2uiJsonToken
```

Indicates a JSON null literal.

### NUMBER

```
val A2uiJsonToken.NUMBER: A2uiJsonToken
```

Indicates a JSON numeric value.

### STRING

```
val A2uiJsonToken.STRING: A2uiJsonToken
```

Indicates a JSON string value.

## Public functions

### valueOf

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

```
fun valueOf(value: String): A2uiJsonToken
```

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)

```
fun values(): Array<A2uiJsonToken>
```

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.

## Public properties

### entries

```
val entries: EnumEntries<A2uiJsonToken>
```

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.