var keys = [ ['24', '25'], ['12', '13'], ['31', '32'] ]; var data = { "24;12;31": {price: 366.00, count: 46}, "25;12;32": {price: 406, count: 66} }