title: How to remove certain comments from a json file? (/*)
body: <p>I have about 500 json files with comments in them. Trying to update a field on the json file with a new value, throws an error. I managed to use commentjson to remove strings like this // some text and the json file updates and throws no errors.</p>
  <p>But there is about 100 json files with comments like this:</p>
  <pre><code>  /*
  
     1. sometext.
          i. sometext
          ii. sometext 
     2. sometext
  
    */
  </code></pre>
  <p>Commentjson just crashes when /* exists. If I remove /* and run the code, it will work and update and remove any //.
  How can I write some code to manage /* and all text between /* */?</p>
  <p>This is my current code that can remove //</p>
  <pre><code>with open(f&quot;{i['Location']}\\{file_name}&quot;,'r') as f:
      json_info = commentjson.load(f) #Gets info from the json file
      json_info['password'] = password
  
      with open(f&quot;{i['location_Daily']}\\{file_name}&quot;,'w') as f:
          commentjson.dump(json_info,f,indent = 4) #updates the password   
          print(&quot;updated&quot;)
  </code></pre>