title: jQuery and JSON: getting an element by name
body: <p>I have the following JSON:</p>
  
  <blockquote>
    <p>var json = {
        "system" : {
            "world" : {
                "actions" : {
                    "hello" : {
                        "src" : "hello world/hello world.js",
                        "command" : "helloWorld"
                    }
                }
            }
        }
    }</p>
  </blockquote>
  
  <p>I have the following javascript:</p>
  
  <blockquote>
    <p>var x = "system";<br>
    // get the contents of system by doing something like json.getElementByName(x)</p>
  </blockquote>
  
  <p>How do I get the contents of system using <code>json</code> and <code>x</code> in jQuery?</p>