title: Jenkinsfile write JSON file
body: <p>From within my Jenkinsfile, I am trying to create and write a simple JSON file to the workspace folder.</p>
  
  <p>The contents of the JSON file should be:</p>
  
  <pre><code>{"people": {"name":"john","surname":"doe"}}
  </code></pre>
  
  <p>Any ideas?</p>