How to remove duplicates from JSON

Swathy Soundar | 12 xp

I have JSON with list of users and they contain some duplicate values. I use ID as the primary key. Help me out with this. Thanks

Dholfaqar Alharazi | 40 xp

what you mean by duplicate values , for example you have Value for city and all the user are from the same city so city will be duplicate value for all user , if that was the case then when you made the Json you don’t have to include the duplicate value if u using sql then just remove the duplicate value from Select **** , anyway when u want to show the duplicate it value anywhere u just type it manually coz you know all the user have the same value