Implement support for writing the objects.json file.

Refs #6702