---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: stringify (object)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

An alias of the `json:asJSON` function.

You can use `json:stringify` instead of `json:asJSON`. If you're using a variable of type Map, List, or Set, the `{object}.toJson` function is more concise. Example: `myVariable.toJson()`

## <a id="section_cyq_j1m_zsb"></a>Return Type

`String`

## <a id="section_dz5_pwg_5db"></a>Namespace Function Syntax

```
json:stringify(object)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>object</td><td>An Object to convert to JSON.</td></tr></tbody></table><br/>

<b>Example</b>

`json:stringify([{'a':1},{'b':2}])`

Returns `"[{'a':1},{'b':2}]"`

### Related Information

[asJSON (object)](/wcp_docs/yhr1526020537362.html)

