title: How to extract simple text and store into a file?
body: <p>I'm writing a bash script for hetzner's cloud API, and I need to store the server's ID to a text file. After the command using it will output the below,</p>
  <pre><code>{
    &quot;server&quot;: {
      &quot;id&quot;: 12345678,
      &quot;name&quot;: &quot;servertest-101&quot;,
      &quot;status&quot;: &quot;initializing&quot;,
      &quot;created&quot;: &quot;2020-09-18T09:22:21+00:00&quot;,
  </code></pre>
  <p>This is just a snippet, but that's from the first line of the response.</p>
  <p>How can I extract and store that value?</p>