title: Deserialize Json into a dynamic object with ServiceStack.Text
body: <p>I am using <a href="https://github.com/ServiceStack/ServiceStack.Text" rel="nofollow noreferrer">ServiceStack.Text</a> to deserialize json into a dynamic object.</p>
  
  <p>I'm encountering an error when trying to deserialize the following json:</p>
  
  <pre><code>{
    "responseHeader":{
      "status":0,
      "QTime":3,
      "params":{
        "q":"*:*",
        "indent":"true",
        "wt":"json"}},
    "response":{"numFound":1,"start":0,"docs":[
        {
          "id":"1",
          "title":["test"],
          "_version_":1480260331707039744}]
    }}
  </code></pre>
  
  <p>The json above is a string and this is how I am trying to deserialize it:</p>
  
  <pre><code>DynamicJson dyn = DynamicJson.Deserialize(json);    
  var response = dyn.response;
  </code></pre>
  
  <p>But I get an error saying: <strong>dyn does not contain a definition for 'response'</strong></p>
  
  <hr>
  
  <p><code>dyn</code> does return a type of <code>ServiceStack.DynamicJson</code> with the following value (from debugger):</p>
  
  <pre><code>{"response_header":"{\n    \"status\":0,\n    \"QTime\":0,\n    \"params\":{\n      \"q\":\"*:*\",\n      \"size\":\"0\",\n      \"indent\":\"True\",\n      \"start\":\"0\",\n      \"wt\":\"json\",\n      \"return-fields\":\"\"}}","response":"{\"numFound\":1,\"start\":0,\"docs\":[\n      {\n        \"id\":\"1\",\n        \"title\":[\"test\"],\n        \"_version_\":1480260331707039744}]\n  }"}    ServiceStack.DynamicJson
  </code></pre>
  
  <p>According to the answer here: <a href="https://stackoverflow.com/questions/21600968/using-servicestack-text-to-deserialize-a-json-string-to-object">Using ServiceStack.Text to deserialize a json string to object</a> that's how its done, but what am I doing wrong here?</p>