title: Correct way to include directory paths in a JSON config file for Python
body: <p>I have looked around and have only found answers to writing out a directory tree to a JSON file - which is fine but doesn't solve my current issue. I'm looking for either the syntax to do this OR a better method for my overall problem.</p>
  
  <p>High level: I'm working on a Python wrapper of some enterprise software to automate some testing. Ideally I can ship off a config file with the code so that whoever runs the tests just needs to worry about the config file and not the code itself. I'd like to include directory paths in the config file since those are relative to the machine the code is being run on. I would love for there to be an equivalent to a string literal for JSON that exists in Python</p>
  
  <pre><code>r"This\Type\Of\Thing!"
  </code></pre>
  
  <p>so that I can simply have something like this:</p>
  
  <pre><code>{"relevant_paths": {
      "path1": r"C:\users\whatever\path",
      "path2": r"C:\useres\another\whatever\path\"
      }
  }
  </code></pre>
  
  <p>to access them as dict values, but as you already know, it doesn't. Also the single-quote isn't working for me as an escape character, unless it's just PyCharm complaining and I don't understand why (very possible).</p>
  
  <p>So is there a way to include directory paths in the JSON or should I actually rethink how I'm shipping this off?</p>