title: Perform string manipulation on a value and return the original JSON document with jq
body: <p>In my JSON document I have a string that I need manipulated and then have the entire document returned with the 'fixed' values.</p>
  
  <p>The input document is:</p>
  
  <pre><code>{
      "records" : [
              {
                  "time": "123456789000"
  
              },
              {
                  "time": "123456789000"
              }
  
      ]
  }
  </code></pre>
  
  <p>I want to find the "time" key and replace the string by dropping off the last 3 chars. The resulting document would be:</p>
  
  <pre><code>{
      "records" : [
              {
                  "time": "123456789"
  
              },
              {
                  "time": "123456789"
              }
  
      ]
  }
  </code></pre>
  
  <p>I've been trying to understand the jq query syntax but I'm not coming right. I'm still struggling to return the whole document when filtering on a specific value. All I have so far is:</p>
  
  <pre><code>.records[] | select(.time | contains("123456789000"))
  </code></pre>