> For the complete documentation index, see [llms.txt](https://docs.tomat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomat.ai/data-transformation/formulas/conversion-functions/toobject.md).

# ToObject

Converts value to the object type

```mathematica
ToObject("{\\"key\\": 1}") → {"key":1}
```

#### Inputs

`ToObject(value, [replaceInvalidWith])`

* `value` - A value to convert into an object
* `[replaceInvalidWith]` - **\[optional**: null by default\*\*]\*\* - invalid values will be replaced with this parameter

#### Description

We do not have a direct syntax in our expressions to create an Object, but you can get it as a result of some nodes, such as Nest or Unnest

Convert String columns to Object before using them in the Unnest node.
