# UUID

## Overview

The `UUID` object provides utilities for working with universally unique identifiers (UUIDs). It supports operations to retrieve the byte array or string representation of a UUID.

## Methods Summarized

| Type                                                     | Name                    | Summary                                        |
| -------------------------------------------------------- | ----------------------- | ---------------------------------------------- |
| [Array](/reference/servoycore/dev-api/js-lib/array.md)   | [toBytes()](#tobytes)   | Get the byte array representation of the UUID. |
| [String](/reference/servoycore/dev-api/js-lib/string.md) | [toString()](#tostring) | Get the string representation of the UUID.     |

## Methods Detailed

### toBytes()

Get the byte array representation of the UUID.

**Returns:** [Array](/reference/servoycore/dev-api/js-lib/array.md) the byte array representation of the UUID.

**Sample**

```js
uuid.toBytes();
```

### toString()

Get the string representation of the UUID.

**Returns:** [String](/reference/servoycore/dev-api/js-lib/string.md) the string representation of the UUID.

**Sample**

```js
uuid.toString();
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoycore/dev-api/application/uuid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
