title: Replace values where other keys are - jq
body: <p>I'm a bit lost with this <code>jq</code> command. I have a <code>json</code> file like that:</p>
  <pre class="lang-json prettyprint-override"><code>...
  
  {
      &quot;class&quot;: &quot;classOne&quot;,
      &quot;title&quot;: &quot;title1&quot;,
      &quot;text&quot;: &quot;text1&quot;
  },
  {
      &quot;class&quot;: &quot;classTwo&quot;,
      &quot;title&quot;: &quot;title2&quot;,
      &quot;text&quot;: &quot;text2&quot;
  },
  
  ...
  </code></pre>
  <p>What I'm trying to do is replace values of <code>text</code>s with another value, depending on the value of <code>title</code>.</p>
  <p>How can I do, and how in general can I replace one value depending on another from the same 'group'? Plus, can I specify 'only first' or 'general' following the way <code>sed</code> works with <code>'.../g'</code>?</p>
  <hr />
  <h2>Edit</h2>
  <p>I want to be able to work with any depth of my <code>json</code>, that's why my included code isn't very big. Basically I want to modify a value depending on the value of another key <em>always in the same object</em>.</p>
  <hr />
  <p>Tyvm.</p>