Passing JSON to a Macro

JSON Packing and Unpacking.kmmacros (4.1 KB)

Example steps

Setup the variables

Pack the variables into JSON by changing Prefix given with the %JSONFromVariables%Prefix% token to the common prefix of the variables you want as JSON keys

Reality check.
Should see {"A":"1","B":"2","C":"3")

Unpack the JSON keys in %Variable%Local__JSON% to variables starting with the prefix Out__

Reality Output Check

Example Run