// Current: [ { "model": "foo", "fields": { "name": "bar", } }, ... ] [ { "model": "abc", "fields": { "name": "xyz", "foreignKeyToFoo": ["bar"] } } ... ] // What I want: [ { "model": "foo", "fields": { "name": "bar", }, "abc": [ { "name": "xyz" }, ... ] }, ... ]