---
title: Types
description: Data types supported in DataPrime, such as string, number, timestamp, interval, and array, with a description and JSON encoding for each.
url: https://coralogix.com/docs/dataprime/language-reference/types/
product: dataengine
feature: DataPrime Language
feature_id: dataprime-language
feature_identifier: dataengine/dataprime-language
last_updated: '2026-10-29'
---

# DataPrime Types

| **Type**    | **Description**                                                                                | **Encoding**                            |
| ----------- | ---------------------------------------------------------------------------------------------- | --------------------------------------- |
| `string`    | UTF-8 character sequence. Used for text, labels, identifiers.                                  | JSON *string*. e.g., `"example text"`   |
| `number`    | Integer or floating-point. Used in math and filters.                                           | JSON *number*. e.g., `42`, `5.5`        |
| `boolean`   | Logical true/false values.                                                                     | JSON *boolean*. `true` or `false`       |
| `timestamp` | A point in time, in nanoseconds.                                                               | JSON *number*. e.g., `1609459200000000` |
| `interval`  | Duration value. String input, number internal (nanoseconds).                                   | JSON *string* or *number* (nanoseconds) |
| `null`      | 1. Absence of a value<br />2. Non-computable expression<br />3. `null` value of the JSON field | `null`                                  |
| `regexp`    | Regular expression for pattern matching.                                                       | JSON *string* (rarely shown directly)   |
| `array<T>`  | A list of values of the same primitive type.                                                   | JSON *array*. e.g., `["a", "b", "c"]`   |
