I am unable to decipher the error message Expected :
. It occurs when it attempts to execute the code below. I have a string of characters e.g. "Joe":"HR" being passed to it
var p = {
"\"" + m[0] + "\"" + " : " + "\"" + (m[0] = m[1]) + "\""
};
Additional code
for (var key in p)
{
if (p.hasOwnProperty(key))
{
client = selectedPackage.Elements.AddNew(key, p[key]);
client.Update();
}
}