title: How to find and replace a value in a JSON file?
body: <p>I have a <code>discord.py</code> bot and also a java discord bot that stores prefixes in a JSON file, I need a python script that adds or replaces the &quot;prefix&quot; value with python for a string that I already have. Here is a part of my JSON file:</p>
  <pre><code>{
  &quot;860550408350990376&quot;: {},
  &quot;894146731623735336&quot;: {},
  &quot;391919052563546112&quot;: {&quot;dj_role_id&quot;: &quot;613442662200246342&quot;},
  &quot;825745065351577641&quot;: {&quot;prefix&quot;: &quot;;&quot;},
  &quot;436822718067900417&quot;: {},
  }
  </code></pre>