title: Case insensitive dictionary lookup in Python one-liner called from bash
body: <p>I'm not finding a solution to this, even on the other topics here relating to case insensitive dictionaries in Python.</p>
  
  <p>I have a bash script, and I need to look up a value from a .json file, using a key extracted from another .json file. (These files are part of Chrome extensions.) The easiest way I've found to do this is by putting Python one-liners in the bash script. Here's what I've got right now:</p>
  
  <pre><code>extName=$(cat "$localePath" | python -c "import sys, json; sys.stdout.write(json.load(sys.stdin)['"$nameKey"']['message'])")
  </code></pre>
  
  <p>Here's the problem... Chrome doesn't seem to care about case in its json files, and in some extensions, the case of the key that I've previously extracted (from the extension's manifest.json) into $nameKey does not match the case of the key in $localePath (a path to a messages.json file in one of the extension's _locales folders).</p>
  
  <p>Is there a way to do this in a Python one-liner, or am I going to have to find a different way to do this?</p>