I needed to parse a string of properties to a JSON object. Here is the input format:
"var1=[val1] & var2=[val2] & var3=[val3] & var4=[val4]"
And the desired output:
{
"var1": "val1",
"var2": "val2",
"var3": "val3",
"var4": "val4"
}
I have the answer, see below...