Capitalize the key of the object, and if the value is an array, iterate through the objects in the array.