title: Python: How to search and replace parts of a json file?
body: <p>I'm new to Python and I would like to search and replace titles of IDs in a JSON-file. Normally I would use R for this Task, but how to do it in Python. Here a sample of my JSON code (with a Service ID and a layer ID). I'm interested in replacing the titles in the layer IDs:</p>
  
  <pre><code> ...{"services": [
                    {
                       "id": "service",
                       "url": "http://...",
                       "title": "GEW",
                       "layers": [
                          {
                             "id": "0",
                             "title": "wrongTitle",
                          },
                          {
                             "id": "1",
                             "title": "againTitleWrong",
                          },
                       ],
                       "options": {}
                    },],}
  </code></pre>
  
  <p>For the replace I would use a table/csv like this:</p>
  
  <pre><code>serviceID   layerID   oldTitle         newTitle
  service     0         wrongTitle       newTitle1
  service     1         againTitleWrong  newTitle2
  ....
  </code></pre>
  
  <p>Do you have ideas? Thanks</p>