title: Upload JSON string to Google Cloud Storage without a file
body: <p>My case is when I receive data from some other source as a JSON string, then I want to upload this string to Google Cloud Storage without writing this string to a local file and upload this file. Is there any way to do this. Thank you.
  Look like this code below</p>
  
  <pre><code>storage
    .bucket(bucketName)
    .upload(jsonString, { destination: 'folder/test.json' })
    .then(() =&gt; {
      console.log('success');
    })
    .catch((err) =&gt; {
      console.error('ERROR:', err);
    });
  </code></pre>
  
  <p>so I expected the Google Cloud Storage will have a file test.json with content from the jsonString</p>