what is the recommended approach for developing a script in Jmeter from below options if I need to extract single/multiple values from response and Mark sampler as fail if it has error Option 1. Use Jmeter built-in postprocessor for each of the variable needed or grab all variable in one go using regular expression extractor or Json path extractor etc and use assertion to check for the success or failure
Option 2: Use JSR223postprocessor and use groovy to parse response and grab required variable/variables and write code to check the success or failure instead of using built-in assertion