I'm trying to combine JSON using similar values. Below is example JSON from my project. It's stored in a database all in one file:
[ {
email: 'test@test.com',
client: 'Test Account',
UserID: '123456',
activelistings: [ '1.1.1.1' ] },
{
email: 'test@test.com',
client: 'Test Account',
UserID: '123456',
activelistings: [ '2.2.2.2'] } ]
What I'm trying to do is combine based on email, client, and UserID. Below is what I'm aiming for:
[{
email: 'test@test.com',
client: 'Test Account',
UserID: '123456',
activelistings: [ '1.1.1.1', '2.2.2.2'] } ]