title: Removing junk from JSON?
body: <p>For IE7 and IE8, I am capturing some JSONp to use in my webpage.  Below is an extract of the JSONP:</p>
  
  <pre><code>{
      class: "min-temp",
      span: {
          class: "units-values temperature-units-values",
          span: [
              {
                  class: "units-value temperature-value temperature-value-unit-c",
                  span: {
                      class: "unit",
                      content: "°C"
                  },
                  content: "11
                "
              },
              {
                  class: "units-value temperature-value temperature-value-unit-f",
                  span: {
                      class: "unit",
                      content: "°F"
                  },
                  content: "52
                "
              }
          ]
      }
  },
  </code></pre>
  
  <p>If you look at the <code>content: "11</code> and <code>content: "52</code>, you will see that there are a lot of extra characters after them.  How do I remove those extra characters so I only end up with the number, i.e. <code>11</code> or <code>52</code>.</p>
  
  <p>At the moment, I am extracting those numbers as follows:</p>
  
  <p><code>day.span[1].span.span[0].content</code> gives me <code>11</code> and <code>day.span[1].span.span[1].content</code> gives me <code>52</code>.</p>