MyJsonArray =
[{quoteId: "MqWmJkUzcP", price: 211, userName: "Test"},{quoteId: "OqgFavcIiR", price: 230, userName: "Aglowid"},{quoteId: "MqWmJkUzcP", price: 120},
{quoteId: "IFeiWnxMfq", price: 146, userName: "Test-2"},
{quoteId: "pVL0CgIxaN", price: 155, userName: "Test-2"}]
I want json array like unique this array and create price array inside it like below where quoteId match
Output
[{quoteId: "MqWmJkUzcP", price:[211,120], userName: "Test"},
{quoteId: "OqgFavcIiR", price: 230, userName: "Aglowid"},
{quoteId: "IFeiWnxMfq", price: 146, userName: "Test-2"},
{quoteId: "pVL0CgIxaN", price: 155, userName: "Test-2"}]
Sorry for typing and grammar mistake because i ask this question from mobile