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 

OrdinalTypeDescription
1string or arrayRequiredString or array to parse

Example 

This example sets the val variable to propVal.

1<script runat="server">
2     var str = '{ "prop1": "propVal" }';
3     var obj = Platform.Function.ParseJSON(str);
4     var val = obj.prop1;
5</script>