title: Convert string to json in jq
body: <h2>Background</h2>
  
  <p>I have a json file that contains a string of json within an object:</p>
  
  <pre><code>{
      "requestType": "POST",
      "response": {
          "size": 78,
          "text": "{\"recordID\":123, \"title\":\"Hello World\", \"content\":\"Lorem ipsum...\"}"
      }
  }
  </code></pre>
  
  <p>I need to interperet the contents of the <code>.response.text</code> string as json using the json command line interpereter, <a href="https://stedolan.github.io/jq/" rel="noreferrer">jq</a>.</p>
  
  <p>When I run this command:</p>
  
  <pre><code>jq '.response.text | @json'
  </code></pre>
  
  <p>Output: <code>"\"{\\\"recordID\\\":123, \\\"title\\\":\\\"Hello World\\\", \\\"content\\\":\\\"Lorem ipsum...\\\"}\""</code></p>
  
  <p>I get some weird escaped json string instead of json that I can access via something like this: <code>.response.text | @json | .recordID</code>.</p>
  
  <p>I realize that the <code>@json</code> function will take json and output a json escaped string, so there must be another way, but <code>@text</code> doesn't seem to do anything.</p>
  
  <h2>Question</h2>
  
  <p>Is there some way to convert a string of escaped json to actual json that I can parse with a command such as this: <code>jq '.response.text | @json | .title'</code> and get this output: <code>"Hello World"</code>?</p>