title: How to convert karate response to String type
body: <p>I have a method in java that accepts String parameter. If I pass response which is karate in built variable. Java method gives exception as it is expecting double quotes in the stating. </p>
  
  <pre><code>* def JavaDemo = Java.type('karate.Utility.WriteJsonToFile')    
  Given url 'https://postman-echo.com/get?test=123'
  When method get
  Then status 200  
  * def sd1 = JavaDemo.writeJsonToFile(response, 'Response.json')
  </code></pre>