Correctly output collections of objects

The Jackson object mapper fails to write the object type attributes
when given a collection of objects.  Instead manually start and end
the JSON array and map each value.