Applescript record to KM variable?

I’m using AS to display a multiple input dialog using Pashua.
Pashua returns a AS key value pair record which I store in a KM variable.
When I use the variable back in AS the contents of the variable are not recognized as key value pairs.
I’m sure it’s because KM is storing it a quoted string.

So it looks like { prop1: “val1”, prop2: “val2”, prop3: “val3” } returning from AS
After getting it from the KM variable it looks like “prop1: val1, prop2: val2, prop3: val3”

Any AS gurus know how to make the string back into a AS record?

Native AppleScript has very poor support for records. But with ASObjC you can work wonders. See if this topic can help you:

Making AppleScript Records Dynamic using ASObjc