---
schema_version: "1"
id: 103d47b9b2cd2441997034ac4cd65fc8c8347e463b0a9ef6eaa6cbb0c470fd1c
title: ParseJSON
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformUtilityParseJSON.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformUtilityParseJSON.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 018a83abcbc83610f5307ed242092b3aa825db2457632cee2e676207c0274083
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# ParseJSON

## Overview

Parses the supplied string or array value and returns a object from that value. This function will not execute functions within the supplied values.

### Syntax

ParseJSON(1)

### Function Properties

<!--complex table-->

| Ordinal | Type            |              | Description              |
| ------- | --------------- | ------------ | ------------------------ |
| **1**   | string or array | **Required** | String or array to parse |

## Example

This example sets the val variable to propVal.

```
<script runat="server">
     var str = '{ "prop1": "propVal" }';
     var obj = Platform.Function.ParseJSON(str);
     var val = obj.prop1;
</script>
```
