title: octokit createPullRequest for JSON files
body: <p>I have been trying to create a pull request using the <strong>createPullRequest</strong> plugin from <strong>octokit</strong> and so far for simple text files it works well, but when I am trying to commit some changes into a JSON file in the repository, I get something like this:</p>
  <p><a href="https://i.stack.imgur.com/KXtaB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KXtaB.png" alt="https://i.stack.imgur.com/KXtaB.png" /></a><br />
  <sup>ss from the pull request</sup></p>
  <p>I want this data to present itself in a json-structure, I am using the following code:</p>
  <pre><code>const updatedContent = JSON.stringify(json_for_package);
          const pr=await octokit_pull.createPullRequest({
              owner: ownername,
              repo: repoName,
              title: &quot;pull request &quot;+dependency,
              body: &quot;change &quot;+dependency+&quot; v&quot;+curr_version+&quot; to v&quot;+version,
              base: &quot;main&quot; ,
              head:  &quot;pulls-requests-branches-names-main-&quot;+dependency+&quot;-v&quot;+version,
              forceFork: true, 
              changes: [
              {
                  files: {
                      &quot;package.json&quot;: updatedContent,
                  },
                  commit:
                  &quot;updated the contents of package.json&quot;,
              },
              ],
          });
  </code></pre>
  <p>Here json_for_package is the JSON content that I want to write into my <code>package.json</code> file, I just need to know how I can pass the <code>updatedContent</code> in the files so that it recognizes that it a JSON file and not any simple text.</p>