Question
nms.extAccount.load JSON.stringify JSON.parse
I am performing some tests, I have in an external account in the comment section some configuration in object literal

{
JWT : { endpoint :"https://somelink1",
clientid :"consent-management",
grantType :"client_credentials" },
CMP : {endpoint :"https://someotherlink2",
contentType :"application/json"}
}
In a workflow I am loading the external account object and matching object configuration in the comment section using a regex, while I can JSON parse it, I cannot seem to navigate using dot notation.
var auth = nms.extAccount.load(39010);
var regex = /{([^;]*)}/gm;
var authObj = JSON.parse(JSON.stringify(auth.comment.match(regex)));
logInfo(authObj);

Normally I would then navigate using dot notation (authObj.JWT.endpoint) but I am getting undefined.