``` List<String> vals = new List<String> { 'val1', 'val2', 'val3' }; email.addSubstitution('sub', vals); ``` The above code will add the "sub" JSON but will only have "val3" in the substitution list.
The above code will add the "sub" JSON but will only have "val3" in the substitution list.