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

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>
Last Updated: Jun 8, 2021