Need to change the flat JSON output in a parent-child object format.