title: Jmeter - passing JSON response array to the next graphql http request
body: <p>I have 2 graphql http requests as following. </p>
  
  <p>The first http request's response returning json like so:</p>
  
  <p>{"data":{"customers":{"customerIds":["0e1c7b05-79c6-40c6-9144-7230a836fe04", "45677b05-79tt-56c6-9144-7230a836bbbb"]}}}</p>
  
  <p>I then created the json extractor and the beanshell to save the customer ids in the property</p>
  
  <p><a href="https://i.stack.imgur.com/3UTC2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3UTC2.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0dmUm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0dmUm.png" alt="enter image description here"></a></p>
  
  <p>The 2nd Http request then using the above customerids property as part of the graphql request body</p>
  
  <p><a href="https://i.stack.imgur.com/YgBUI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YgBUI.png" alt="enter image description here"></a></p>
  
  <p>but I;m getting the 500 InternalServerError due to the quotes in the list customerids below not being escaped.  how can i escape them ? </p>
  
  <pre><code>POST data:
  {"query":"query getCustomerInfo {\n  getCustomerInfo(customerIds: \"["0e1c7b05-79c6-40c6-9144-7230a836fe04"]\") {\n firstName\n lastName\n school\n }\n}"}
  </code></pre>