---
title: OBJECT
url: https://www.tines.com/docs/formulas/functions/object/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# OBJECT

*[View on tines.com](https://www.tines.com/docs/formulas/functions/object/)*

Returns an object with keys and values as specified.

**Categories:** Objects

## Syntax

```
OBJECT(key1, value1, key2, value2, ...)
```

## Examples

### Example 1

Formula:

```
OBJECT("city", "Melbourne", "state", "Victoria", "post_code", 3000, "country", "Australia")
```

Output:

```json
{
  "city": "Melbourne",
  "country": "Australia",
  "post_code": 3000,
  "state": "Victoria"
}
```

### Example 2

Input:

```json
{
  "my_action": {
    "location": {
      "city": "Melbourne",
      "country": "Australia",
      "post_code": 3000,
      "state": "Victoria"
    },
    "person": {
      "age": 45,
      "name": "John Smith"
    },
    "registered": true
  }
}
```

Formula:

```
OBJECT("Attendee", my_action.person.name, "Location", my_action.location.city, "Status", IF(my_action.registered=TRUE, "Registered", "Not Registered"))
```

Output:

```json
{
  "Attendee": "John Smith",
  "Location": "Melbourne",
  "Status": "Registered"
}
```

## Sample actions

### Sample action 1

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "OBJECT",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "object": "=OBJECT(\"city\", \"Melbourne\", \"state\", \"Victoria\", \"post_code\", 3000, \"country\", \"Australia\")"
        }
      },
      "position": {
        "x": 465,
        "y": 2505
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [],
  "diagramNotes": []
}
```

### Sample action 2

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "person": {
            "name": "John Smith",
            "age": 45
          },
          "location": {
            "city": "Melbourne",
            "state": "Victoria",
            "post_code": 3000,
            "country": "Australia"
          },
          "registered": true
        }
      },
      "position": {
        "x": 660,
        "y": 2505
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "OBJECT",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "object": "=OBJECT(\"Attendee\", my_action.person.name, \"Location\", my_action.location.city, \"Status\", IF(my_action.registered=TRUE, \"Registered\", \"Not Registered\"))"
        }
      },
      "position": {
        "x": 660,
        "y": 2595
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
