Format object array to conform to whitespace guidelines