title: How do I take the response from one JMeter rest sampler and use it as input to another?
body: <p>I have a JMeter test that has a rest sampler that outputs a value as such in the response data:</p>
  
  <p>{"Var1":"xxxxx-xxxxxxxx-xxxxxxxxxx"}</p>
  
  <p>I need to take that out put (Var1) and use it as input for the next rest sampler in the following test step. I have a line in a BeanShell pre-processor that says:</p>
  
  <p>String clearText = "somestring1" + "_" + var1 + ":" + "somestring2";</p>
  
  <p>where var1 is derived from a Regular Expression Extractor from the preceding RestSampler (that is how I got the out put {"Var1":"xxxxx-xxxxxxxx-xxxxxxxxxx"} ).</p>
  
  <p>Problem: I get a void for var1 in the output of the second rest sampler.</p>
  
  <p>What am i doing wrong? how can i get the value from the output of the first rest sampler and use it as input in the second rest sampler??</p>
  
  <p>Thanks.</p>
  
  <p>ironmantis7x </p>