skip to Main Content

Javascript – Mapping flattened data structure to a nested json structure in js

I am getting a dataset back from my database in a flattened structure like this: [ {manufacture:Ford, make:Mustang, model:EcoBoost}, {manufacture:Ford, make:Mustang, model:GTFastback}, {manufacture:Ford, make:Mustang, model:DarkHorse}, {manufacture:Ford, make:Escape, model:Active}, {manufacture:Ford, make:Escape, model:Platium}, {manufacture:Toyota, make:Camry, model:XSE}, {manufacture:Toyota, make:Camry, model:TRD}, {manufacture:Toyota, make:Camry, model:XLE},…

VIEW QUESTION
Back To Top
Search