How to filter JSON data using Python?
<p>How to convert JSON data from <strong>input.json</strong> to <strong>output.json</strong> using Python? In general, what data structures are used for filtering JSON data?</p>

<p><strong>File: input.json</strong></p>

<pre><code>[
{
    "id":1,
    "a":22,
    "b":11
},
{
    "id":1,
    "e":44,
    "c":77,
    "f":55,
    "d":66
},
{
    "id":3,
    "b":11,
    "a":22
},
{
    "id":3,
    "d":44,
    "c":88
}
]
</code></pre>

<p><strong>File: output.json</strong></p>

<pre><code>[
{
    "id":1,
    "a":22,
    "b":11,
    "e":44,
    "c":77,
    "f":55,
    "d":66
},
{
    "id":3,
    "b":11,
    "a":22,
    "d":44,
    "c":88
}
]
</code></pre>

<p>Any pointers would be appreciated!</p>