Skip to content

Tag: arrays

How to do a join from 2 JSON by a common ID field in Javascript

I have two JSON files: JSON A has some company properties and the company_id, while JSON B has company names and company ids. JSON A example: JSONB example: Which is the most efficient way to do a join by the company_id values? I would like to have the JSON C (merged result) with the company names correctly a…