I thought I saw this before, but after an hour of looking, I cant find it. Simply put. I have two arrays, with a common DocumentID. I just need to JOIN them goether ON DocumentID (using SQL lingo)
Array1:
[
{
"DocumentID": 1265,
"PartNumber": "510009",
"Rev": "1",
"Description": "KBOV HANDLE BRACKET ASSEMBLY"
},
{
"DocumentID": 2338,
"PartNumber": "KBV8-N-FW",
"Rev": "0",
"Description": "KBV8-N-FW GENERAL ARRANGEMENT & BOM"
},
{
"DocumentID": 5522,
"PartNumber": "213155",
"Rev": "0",
"Description": ".125 X .50 DOWEL PIN CS"
}
]
Array2:
[
{
"DocumentID": 1265,
"Comment": "."
},
{
"DocumentID": 2338,
"Comment": "Exploded view still WIP."
},
{
"DocumentID": 5522,
"Comment": "."
}
]
This is what I want:
[
{
"DocumentID": 1265,
"PartNumber": "510009",
"Rev": "1",
"Description": "KBOV HANDLE BRACKET ASSEMBLY",
"Comment": "."
},
{
"DocumentID": 2338,
"PartNumber": "KBV8-N-FW",
"Rev": "0",
"Description": "KBV8-N-FW GENERAL ARRANGEMENT & BOM",
"Comment": "Exploded view still WIP."
},
{
"DocumentID": 5522,
"PartNumber": "213155",
"Rev": "0",
"Description": ".125 X .50 DOWEL PIN CS",
"Comment": "."
}
]
I'm sure there is a simple expression for this.