title: How to remove a value if its repeating more than once in a json?
body: <p>I have a json like below</p>
  <pre><code>a = {&quot;infinity_war&quot;:[&quot;Stark&quot;, &quot;Hulk&quot;, &quot;Rogers&quot;, &quot;Thanos&quot;],
       &quot;end_game&quot;:[&quot;Stark&quot;, &quot;Dr.Strange&quot;, &quot;Peter&quot;]}
  </code></pre>
  <p>Since the name &quot;Stark&quot; is repeating more than once in the whole json I need to keep only one occurrence of &quot;Stark&quot; and remove the others. I tried using pandas but it needs all the list with same length. Is there any other way. The result I need is</p>
  <pre><code>a = {&quot;infinity_war&quot;:[&quot;Stark&quot;, &quot;Hulk&quot;, &quot;Rogers&quot;, &quot;Thanos&quot;],
       &quot;end_game&quot;:[&quot;Dr.Strange&quot;, &quot;Peter&quot;]}
  </code></pre>