# Managing complete objects in json

**URL:** <https://community.postman.com/t/managing-complete-objects-in-json/62031>\
**Category:** Help Hub\
**Tags:** tests, postman-flows\
**Created:** [June 10, 2024, 12:38pm UTC](https://community.postman.com/t/managing-complete-objects-in-json/62031 "2024-06-10T12:38:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [June 10, 2024, 4:48pm UTC](https://community.postman.com/t/managing-complete-objects-in-json/62031/3 "2024-06-10T16:48:14Z")

</div>

@miguelpeccin

Adding similar post with TypeScript and FQL solutions 🙂

> [@Joining lists by shared property](https://community.postman.com/t/joining-lists-by-shared-property/59969/6):
>
> Adding TypeScript solution below that will produce the same result: interface Item { Id: string; GTIN?: string; Color?: string; Material?: string; Grams?: number; } function joinLists(list1: Item[], list2: Item[]): Item[] { const joinedList: Item[] = []; list1.forEach(item1 =\> { const matchingItem = list2.find(item2 =\> item2.Id === item1.Id); if (matchingItem) { joinedList.push({ ...item1, Material: matchi…

Let us know if you get stuck on anything.

---

_[View the full topic](https://community.postman.com/t/managing-complete-objects-in-json/62031)._
