I am trying to access a variable named var1 in the below BSF Script, where var1 is extracted from JSON XPath Extractor:
String abc= vars.get("var1"); abc = abc.replaceAll("^[\"\\(\\+|[\"\\)\\(]]+$", ""); vars.put("abc",abc);
After running the script I could not fetch the value of the variable, i.e. the
I have referred to How to remove square brackets  after extracting response using json path extractor? but could not get the value.
My Jmeter version is 3.1.