> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parsetostring

# \$parseToString

The `$parseToString` operator converts any value to its string representation.

## Input

* A single value of any type

## Output

* The string representation of the input value

## Examples

### Convert Number to String

```json theme={null}
{
  "$parseToString": [
    123
  ]
}
```

Result: `"123"`

### Convert Boolean to String

```json theme={null}
{
  "$parseToString": [
    true
  ]
}
```

Result: `"true"`

### Convert Null to String

```json theme={null}
{
  "$parseToString": [
    null
  ]
}
```

Result: `"null"`

### Field Value

```json theme={null}
{
  "$parseToString": [
    {
      "$input": "value"
    }
  ]
}
```

Result: The string representation of the value field
