How can i join two array based on match value between them?

This is duplicated by Managing complete objects in json?