[Python] Remove duplicates in an object in JSONiq

Discussão em 'Python' iniciado por Stack, Julho 14, 2025.

  1. Stack

    Stack Membro Participativo

    This is an example object that I got:

    { "query1" : [ { "name" : "John", "id" : 1234 }, { "name" : "Rose", "id" : 3214 }, { "name" : "John", "id" : 1234 } ] }

    How can I remove the duplicates using group by and array navigation / unboxing?

    I tried implementing the group by clause after the where clause but did not get the correct answer

    Continue reading...

Compartilhe esta Página