title: jq replace part of value in json
body: <p>I need to replace part of a value from a json output. I could easily do this using <code>sed -i</code> however it would also replace other parts of the file I don't want it to, unless I'm missing something. The output is</p>
  <pre><code>{
    &quot;LastModified&quot;: &quot;2018-03-07T17:24:33.000Z&quot;,
    &quot;Key&quot;: &quot;pending/archive/f7ab1684-e94d-483e-ace1-560367c1196c_1000_s.json&quot;
  }
  </code></pre>
  <p>and I need to replace the dash &quot;-&quot; on the LastModified value to a slash, then remove some stuff too like the &quot;T&quot; and the &quot;.000Z&quot; So I can eventually convert that timestamp to epoch.</p>
  <p>I tried using
  <code>cat list |  jq -r '.[] | select (.LastModified == &quot;-&quot;) .LastModified = &quot;/&quot;'</code>
  and <code>|=</code> operator but I can't find anywhere else on the web that this has been accomplished.</p>