JSON Parse
Reference documentation for using the JSON parse expression
Written By Ben Lehmann
Last updated 8 months ago
Purpose | Parse a string representing a JSON object and create a corresponding JavaScript value or JSON object |
Parameters | A JSON string |
Returns | Javascript value or JSON object |
Description
The expression parses a JSON string according to the JSON grammar, then evaluates the string as if it's a JavaScript expression. The objects returned from the Parse expression can be stored in a variable. Properties of objects returned by the expression can be accessed like regular Javascript objects.
The JSON Parse expression is configured to treat a string of characters in the Value field as a string. This means you should not wrap JSON object literals or other values in quotes (like would typically happen when working in Javascript) as doing so will produce either an error or unexpected results. Tags and action outputs also should also not be wrapped in quotes.

Comments
Only valid JSON string values can be inputted into the Value field. If an invalid JSON string is inputted, the expression will return in error.
Resources
Additional resources supporting use of JSON
W3 Schools - an introduction to JSON
JSONLint - a tool helping to validate and format JSON
MDM Web Docs - MDM typical developer reference material
v3.0