Hello, there is a code that loads and iterates json,
jQuery.each(response.items, function(index, item) { text += '<li class="item"><a href="' + item.product.url + '" title="' + item.title + '" class="product-image"><img src="' +image+ '" width="50" alt="' + item.title + '"></li>'; }); It is necessary to output data from another json object into it, some "key-values" are the same, for example json 1:
{[ "id": "123", "title": "qwerty"], [ "id": "456", "title": "asdf"]} json 2:
{[ "id": "123", "img": "http://google.com"], [ "id": "456", "img": "http://vk.com"]} It is necessary to sort through the json 1 loop, but take one parameter with json 2 if the id is the same. Help please advice how to do this