title: Accessing elements of JSON object without knowing the key names
body: <p>Here's my json:</p>
  
  <pre><code>{"d":{"key1":"value1",
        "key2":"value2"}}
  </code></pre>
  
  <p>Is there any way of accessing the keys and values (in javascript) in this array without knowing what the keys are?</p>
  
  <p>The reason my json is structured like this is that the webmethod that I'm calling via jquery is returning a dictionary. If it's impossible to work with the above, what do I need to change about the way I'm returning the data?</p>
  
  <p>Here's an outline of my webmethod:</p>
  
  <pre><code>&lt;WebMethod()&gt; _
  Public Function Foo(ByVal Input As String) As Dictionary(Of String, String)
      Dim Results As New Dictionary(Of String, String)
  
      'code that does stuff
  
      Results.Add(key,value)
      Return Results
  End Function
  </code></pre>