title: How to store the JSON request in a variable using preprocessor and those variable should pass it to subsequent request as base64 value in JMeter
body: <p>My requirement is i need to store the whole Json request in a single variable(using preprocessor) and pass those variable name in request to get the expected response.</p>
  <p>Step 1 : I created a JSR223 Preprocessor test element and placed the Json body. Using CSV config element, i am passing different values to this Json body request at every iteration.</p>
  <p><a href="https://i.stack.imgur.com/H94SP.jpg" rel="nofollow noreferrer">JSR223 request image</a></p>
  <p>Step 2: In http request, i am passing that variable name(ex :foo) as in a base64 function to convert that whole Json request as base64 value to get the expected response.<a href="https://i.stack.imgur.com/uLvsY.jpg" rel="nofollow noreferrer">Http request</a>.</p>
  <p>Could please someone explain how to achieve this scenario here. Please refer the attached screenshot for reference.</p>